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:
parent
92ab566527
commit
c62d9a023a
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue