fixed zabbix no longer returning macros as part of the template (#66996)
This commit is contained in:
parent
1110e9d80d
commit
c80d0c40ce
1 changed files with 3 additions and 0 deletions
|
@ -425,6 +425,9 @@ class Template(object):
|
|||
changed = True
|
||||
break
|
||||
|
||||
if 'macros' not in existing_template['zabbix_export']['templates'][0]:
|
||||
existing_template['zabbix_export']['templates'][0]['macros'] = []
|
||||
|
||||
if template_macros is not None:
|
||||
existing_macros = existing_template['zabbix_export']['templates'][0]['macros']
|
||||
if template_macros != existing_macros:
|
||||
|
|
Loading…
Reference in a new issue