Synchronize fix error

Fix the error:
 "RuntimeError: dictionary changed size during iteration"
This commit is contained in:
Thomas Quenolle 2015-08-26 11:01:00 +02:00
parent 601a1cc6d9
commit c948af3b1e

View file

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