From 298e6c4370433971c572e1f471ffa7e0fb9191f3 Mon Sep 17 00:00:00 2001 From: Raymond Kuiper Date: Thu, 5 Jun 2025 11:53:17 +0200 Subject: [PATCH] support multiple hostgroups for vm --- netbox_zabbix_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_zabbix_sync.py b/netbox_zabbix_sync.py index 340fabc..9cd0eda 100755 --- a/netbox_zabbix_sync.py +++ b/netbox_zabbix_sync.py @@ -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()