Fixed "dictionary changed size during iteration" for zabbix_template when used with newest Python3 (#59181)
This commit is contained in:
parent
f46eb8ebcd
commit
f1fd13c0ef
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ class Template(object):
|
|||
|
||||
# Filter empty attributes from template object to allow accurate comparison
|
||||
for template in template_json['zabbix_export']['templates']:
|
||||
for key in template.keys():
|
||||
for key in list(template.keys()):
|
||||
if not template[key] or (key == 'description' and desc_not_supported):
|
||||
template.pop(key)
|
||||
|
||||
|
|
Loading…
Reference in a new issue