From e3487378c1cc341c7377751fbf6c657bf84c3546 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Mon, 23 Feb 2026 13:28:43 +0100 Subject: [PATCH] Fixed check for future Zabbix versions. --- netbox_zabbix_sync/modules/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox_zabbix_sync/modules/core.py b/netbox_zabbix_sync/modules/core.py index 92be308..eaad57f 100644 --- a/netbox_zabbix_sync/modules/core.py +++ b/netbox_zabbix_sync/modules/core.py @@ -214,7 +214,7 @@ class Sync: logger=logger, ) # Set API parameter mapping based on API version - proxy_name = "host" if not str(self.zabbix.version).startswith("7") else "name" + proxy_name = "host" if str(self.zabbix.version) < "7" else "name" # Get all Zabbix and NetBox data netbox_devices = list( self.netbox.dcim.devices.filter(**self.config["nb_device_filter"]) @@ -240,7 +240,7 @@ class Sync: ) # Set empty list for proxy processing Zabbix <= 6 zabbix_proxygroups = [] - if self.zabbix.version >= "7": + if str(self.zabbix.version) >= "7": zabbix_proxygroups = self.zabbix.proxygroup.get( # type: ignore output=["proxy_groupid", "name"] )