Skip to content

Commit 21db4a9

Browse files
authored
Fix #833, 'site' key error when using cache (#1297)
1 parent f90e024 commit 21db4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/inventory/nb_inventory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,8 @@ def refresh_prefixes(self):
11501150
for prefix in prefixes:
11511151
if prefix.get("site"):
11521152
self.prefixes_sites_lookup[prefix["site"]["id"]].append(prefix)
1153-
# Remove "site" attribute, as it's redundant when prefixes are assigned to site
1154-
del prefix["site"]
1153+
# Remove "site" attribute, as it's redundant when prefixes are assigned to site
1154+
del prefix["site"]
11551155

11561156
def refresh_regions_lookup(self):
11571157
url = self.api_endpoint + "/api/dcim/regions/?limit=0"

0 commit comments

Comments
 (0)