Skip to content

Commit

Permalink
fix: change Site to Location for Nautobot 2.0 (#95)
Browse files Browse the repository at this point in the history
* fix: change Site to Location for Nautobot 2.0

* chore: changelog
  • Loading branch information
nlgotz authored Apr 3, 2024
1 parent 123ffb0 commit f655db4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/92.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changed Site to Location per model updates in Nautobot 2.0.
3 changes: 2 additions & 1 deletion development/nautobot_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nautobot development configuration file."""

import os
import sys

Expand Down Expand Up @@ -140,7 +141,7 @@
"jobs": True,
"models": {
"dcim": {
"Site": True,
"Location": True,
"Rack": True,
"Device": True,
"Interface": True,
Expand Down
3 changes: 2 additions & 1 deletion nautobot_capacity_metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""App declaration for nautobot_capacity_metrics."""

# Metadata is inherited from Nautobot. If not including Nautobot in the environment, this should be added
from importlib import metadata
from typing import Callable
Expand Down Expand Up @@ -43,7 +44,7 @@ class NautobotCapacityMetricsConfig(NautobotAppConfig):
"app_metrics": {
"models": {
"dcim": {
"Site": True,
"Location": True,
"Rack": True,
"Device": True,
},
Expand Down

0 comments on commit f655db4

Please sign in to comment.