mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 15:24:48 -06:00
Remove duplicates from the list of hostgroups
This commit is contained in:
parent
9912f24450
commit
de82d5ac71
@ -135,6 +135,9 @@ class PhysicalDevice:
|
||||
self.hostgroups = [hg.generate(f) for f in hg_format]
|
||||
else:
|
||||
self.hostgroups.append(hg.generate(hg_format))
|
||||
self.hostgroups = list(set(self.hostgroups))
|
||||
self.logger.debug(f"Host {self.name}: Should be member "
|
||||
f"of groups: {self.hostgroups}")
|
||||
|
||||
def set_template(self, prefer_config_context, overrule_custom):
|
||||
"""Set Template"""
|
||||
|
Loading…
Reference in New Issue
Block a user