From c006e7feb59b9af19c60c1269deafc23386d96cf Mon Sep 17 00:00:00 2001 From: Raymond Kuiper Date: Wed, 27 Mar 2024 20:35:32 +0100 Subject: [PATCH] Let's make pylint happy :) --- netbox_zabbix_sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox_zabbix_sync.py b/netbox_zabbix_sync.py index 3c13607..c3d4edd 100755 --- a/netbox_zabbix_sync.py +++ b/netbox_zabbix_sync.py @@ -400,12 +400,12 @@ class NetworkDevice(): if inventory_sync: # Set inventory mode to automatic or manual self.inventory_mode = 1 if inventory_automatic else 0 - - # Let's build an inventory dict for each property in the inventory_map + + # Let's build an inventory dict for each property in the inventory_map for nb_inv_field, zbx_inv_field in inventory_map.items(): field_list = nb_inv_field.split("/") # convert str to list based on delimiter # start at the base of the dict... - value = nbdevice + value = nbdevice # ... and step through the dict till we find the needed value for item in field_list: value = value[item]