feat(inventory): remove device config

config has been removed as this is the full rendered config and the config should only be that as defined within the device.

!7 #5 nofusscomputing/projects/centurion_erp!43 nofusscomputing/projects/centurion_erp#44
This commit is contained in:
2024-07-31 22:53:51 +09:30
parent 5cc1dcb422
commit bddfc8ba92

View File

@ -147,8 +147,9 @@ class InventoryModule(BaseInventoryPlugin):
self.inventory.add_host(host=device['name'])
config = self.fetch_device_config(device['config'])
# see #5
# config = self.fetch_device_config(device['config'])
for key, val in config.items():
# for key, val in config.items():
self.inventory.set_variable(device['name'], key, val)
# self.inventory.set_variable(device['name'], key, val)