From f1fd13c0efdfb901c82517699781ec36b47c8134 Mon Sep 17 00:00:00 2001 From: Dusan Matejka Date: Wed, 31 Jul 2019 20:30:29 +0200 Subject: [PATCH] Fixed "dictionary changed size during iteration" for zabbix_template when used with newest Python3 (#59181) --- lib/ansible/modules/monitoring/zabbix/zabbix_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/monitoring/zabbix/zabbix_template.py b/lib/ansible/modules/monitoring/zabbix/zabbix_template.py index d2762b13096..fe4d4910656 100644 --- a/lib/ansible/modules/monitoring/zabbix/zabbix_template.py +++ b/lib/ansible/modules/monitoring/zabbix/zabbix_template.py @@ -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)