Fix zabbix-template module error version comparison (#39199)

* Fix zabbix-template module error version comparison

* Fix zabbix-template module error version comparison
pull/43340/merge
Adrián Matellanes 6 years ago 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_({

Loading…
Cancel
Save