fixed zabbix no longer returning macros as part of the template (#66996)

pull/66996/merge
Dusan Matejka 5 years ago committed by GitHub
parent 1110e9d80d
commit c80d0c40ce

@ -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…
Cancel
Save