From 27a4a5c6ebc195d930224390ece120a4ab1085be Mon Sep 17 00:00:00 2001 From: Raymond Kuiper Date: Mon, 25 Mar 2024 11:57:46 +0100 Subject: [PATCH] Corrected more pylint errors --- netbox_zabbix_sync.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netbox_zabbix_sync.py b/netbox_zabbix_sync.py index 3d2e96f..28b1fe4 100755 --- a/netbox_zabbix_sync.py +++ b/netbox_zabbix_sync.py @@ -322,11 +322,11 @@ class NetworkDevice(): continue # Add value of predefined variable to hostgroup format if item == "site_group" and nb_site_groups and traverse_site_groups: - path = build_path(site_group, nb_site_groups) - hostgroup += "/".join(path) + "/" + group_path = build_path(site_group, nb_site_groups) + hostgroup += "/".join(group_path) + "/" elif item == "region" and nb_regions and traverse_regions: - path = build_path(region, nb_regions) - hostgroup += "/".join(path) + "/" + region_path = build_path(region, nb_regions) + hostgroup += "/".join(region_path) + "/" else: hostgroup += hostgroup_vars[item] + "/" # If the final hostgroup variable is empty