Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/68375.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix issue with upstream Netbox API which changed api/ipam/prefixes output to use "scope" FK instead of "site"
3 changes: 2 additions & 1 deletion salt/pillar/netbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,8 @@ def _get_site_prefixes(
# Clean up duplicate data in the dictionary
prefix_count = 0
for prefix in site_prefixes_results:
del site_prefixes_results[prefix_count]["site"]
site_prefixes_results[prefix_count].pop("site", None)
site_prefixes_results[prefix_count].pop("scope", None)
prefix_count += 1

# Return the results
Expand Down