Corrected more pylint errors

This commit is contained in:
Raymond Kuiper 2024-03-25 11:57:46 +01:00
parent 537710a4b9
commit 27a4a5c6eb

View File

@ -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