Synchronize fix error
Fix the error: "RuntimeError: dictionary changed size during iteration"
This commit is contained in:
parent
601a1cc6d9
commit
c948af3b1e
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class ActionModule(ActionBase):
|
||||||
# connection to the remote host
|
# connection to the remote host
|
||||||
if 'ansible_syslog_facility' in task_vars:
|
if 'ansible_syslog_facility' in task_vars:
|
||||||
del task_vars['ansible_syslog_facility']
|
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"):
|
if key.startswith("ansible_") and key.endswith("_interpreter"):
|
||||||
del task_vars[key]
|
del task_vars[key]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue