support multiple hostgroups for vm

This commit is contained in:
Raymond Kuiper 2025-06-05 11:53:17 +02:00
parent 77b0798b65
commit 298e6c4370

View File

@ -166,7 +166,7 @@ def main(arguments):
continue
vm.set_hostgroup(vm_hostgroup_format, netbox_site_groups, netbox_regions)
# Check if a valid hostgroup has been found for this VM.
if not vm.hostgroup:
if not vm.hostgroups:
continue
vm.set_inventory(nb_vm)
vm.set_usermacros()