Fully disable inventory if set as false in config
This commit is contained in:
parent
a46a74b994
commit
e9b2701916
1 changed files with 4 additions and 4 deletions
|
|
@ -413,7 +413,7 @@ class ServerBase():
|
|||
self.network.create_or_update_netbox_network_cards()
|
||||
update_inventory = config.inventory and (config.register or
|
||||
config.update_all or config.update_inventory)
|
||||
# update inventory if feature is enabled
|
||||
if config.inventory:
|
||||
self.inventory = Inventory(server=self)
|
||||
if update_inventory:
|
||||
self.inventory.create_or_update()
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue