mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-16 04:02:56 -06:00
Corrected more pylint errors
This commit is contained in:
parent
537710a4b9
commit
27a4a5c6eb
@ -322,11 +322,11 @@ class NetworkDevice():
|
|||||||
continue
|
continue
|
||||||
# Add value of predefined variable to hostgroup format
|
# Add value of predefined variable to hostgroup format
|
||||||
if item == "site_group" and nb_site_groups and traverse_site_groups:
|
if item == "site_group" and nb_site_groups and traverse_site_groups:
|
||||||
path = build_path(site_group, nb_site_groups)
|
group_path = build_path(site_group, nb_site_groups)
|
||||||
hostgroup += "/".join(path) + "/"
|
hostgroup += "/".join(group_path) + "/"
|
||||||
elif item == "region" and nb_regions and traverse_regions:
|
elif item == "region" and nb_regions and traverse_regions:
|
||||||
path = build_path(region, nb_regions)
|
region_path = build_path(region, nb_regions)
|
||||||
hostgroup += "/".join(path) + "/"
|
hostgroup += "/".join(region_path) + "/"
|
||||||
else:
|
else:
|
||||||
hostgroup += hostgroup_vars[item] + "/"
|
hostgroup += hostgroup_vars[item] + "/"
|
||||||
# If the final hostgroup variable is empty
|
# If the final hostgroup variable is empty
|
||||||
|
Loading…
Reference in New Issue
Block a user