Synchronize fix error

Fix the error:
 "RuntimeError: dictionary changed size during iteration"
pull/12101/head
Thomas Quenolle 9 years ago
parent 601a1cc6d9
commit c948af3b1e

@ -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]

Loading…
Cancel
Save