From 7a671d6625f6364073eded27e6987190f013be80 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Tue, 4 Feb 2025 12:46:00 +0100 Subject: [PATCH] Also added backwards support for Zabbix 5 --- modules/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/device.py b/modules/device.py index e8964ba..2ed37e8 100644 --- a/modules/device.py +++ b/modules/device.py @@ -585,7 +585,7 @@ class PhysicalDevice(): # Check if Zabbix version is 6 or higher. Issue #93 group_dictname = "hostgroups" - if str(self.zabbix.version).startswith('6'): + if str(self.zabbix.version).startswith(('6', '5')): group_dictname = "groups" for group in host[group_dictname]: if group["groupid"] == self.group_id: