From c948af3b1ee3ebb943ff75c6f37cec6067c642f2 Mon Sep 17 00:00:00 2001 From: Thomas Quenolle Date: Wed, 26 Aug 2015 11:01:00 +0200 Subject: [PATCH] Synchronize fix error Fix the error: "RuntimeError: dictionary changed size during iteration" --- lib/ansible/plugins/action/synchronize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/synchronize.py b/lib/ansible/plugins/action/synchronize.py index 79de84238d7..d1512494078 100644 --- a/lib/ansible/plugins/action/synchronize.py +++ b/lib/ansible/plugins/action/synchronize.py @@ -77,7 +77,7 @@ class ActionModule(ActionBase): # connection to the remote host if 'ansible_syslog_facility' in task_vars: del task_vars['ansible_syslog_facility'] - for key in task_vars: + for key in task_vars.keys(): if key.startswith("ansible_") and key.endswith("_interpreter"): del task_vars[key]