mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Synchronize fix error
Fix the error: "RuntimeError: dictionary changed size during iteration"
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user