mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 15:24:48 -06:00
Corrected more pylint errors
This commit is contained in:
parent
537710a4b9
commit
27a4a5c6eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user