mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 15:24:48 -06:00
support multiple hostgroups for vm
This commit is contained in:
parent
77b0798b65
commit
298e6c4370
@ -166,7 +166,7 @@ def main(arguments):
|
|||||||
continue
|
continue
|
||||||
vm.set_hostgroup(vm_hostgroup_format, netbox_site_groups, netbox_regions)
|
vm.set_hostgroup(vm_hostgroup_format, netbox_site_groups, netbox_regions)
|
||||||
# Check if a valid hostgroup has been found for this VM.
|
# Check if a valid hostgroup has been found for this VM.
|
||||||
if not vm.hostgroup:
|
if not vm.hostgroups:
|
||||||
continue
|
continue
|
||||||
vm.set_inventory(nb_vm)
|
vm.set_inventory(nb_vm)
|
||||||
vm.set_usermacros()
|
vm.set_usermacros()
|
||||||
|
Loading…
Reference in New Issue
Block a user