Skip to content

Commit

Permalink
fixes issue with wrong usage of var name in netbox connection #273
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-Ricardo committed Jan 27, 2023
1 parent 48f6ef4 commit 76e1ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/netbox/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def prune_data(self):

log.info("Pruning orphaned data in NetBox")

disabled_sources_tags = [x.source_tag for x in self.source_list if getattr(x, "enabled") is False]
disabled_sources_tags = [x.source_tag for x in self.inventory.source_list if getattr(x, "enabled") is False]

# update all items in NetBox accordingly
today = datetime.now()
Expand Down

0 comments on commit 76e1ac5

Please sign in to comment.