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:
Adrián Matellanes 2018-07-27 06:18:02 +02:00 committed by ansibot
parent 92ab566527
commit c62d9a023a

View file

@ -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_({