mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 23:27:32 -06:00
Also added backwards support for Zabbix 5
This commit is contained in:
parent
5617275594
commit
7a671d6625
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user