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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user