Skip to content

Commit

Permalink
adapters/netbox: fix get_device for netboxv37 (#51)
Browse files Browse the repository at this point in the history
NetboxStorageV37.get_device is broken in previous intration when I was adding fetching device neighbors.
It has not been noticed right aways since the most of the core logic is using more flexible make_devices API
which allows to fetch multiple devices at once.
  • Loading branch information
azryve authored Jul 4, 2024
1 parent a944780 commit 20067f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annet/adapters/netbox/v37/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def get_device(
res = extend_device(
device=device,
storage=self,
interfaces=interfaces[device.id],
interfaces=interfaces,
neighbours=neighbours,
)
return res
Expand Down

0 comments on commit 20067f0

Please sign in to comment.