mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix zabbix-template module error version comparison (#39199)
* Fix zabbix-template module error version comparison * Fix zabbix-template module error version comparison
This commit is contained in:
committed by
ansibot
parent
92ab566527
commit
c62d9a023a
@@ -417,7 +417,8 @@ class Template(object):
|
||||
# old api version support here
|
||||
api_version = self._zapi.api_version()
|
||||
# updateExisting for application removed from zabbix api after 3.2
|
||||
if LooseVersion(api_version) <= LooseVersion('3.2.x'):
|
||||
if LooseVersion(api_version).version[:2] <= LooseVersion(
|
||||
'3.2').version:
|
||||
update_rules['applications']['updateExisting'] = True
|
||||
|
||||
self._zapi.configuration.import_({
|
||||
|
||||
Reference in New Issue
Block a user