mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Keep result pristine for ignore_errors
This commit is contained in:
parent
7c2fe3da16
commit
7a201dbb2e
3 changed files with 4 additions and 8 deletions
|
@ -616,11 +616,6 @@ class Runner(object):
|
|||
elif not result.is_successful():
|
||||
ignore_errors = self.module_vars.get('ignore_errors', False)
|
||||
self.callbacks.on_failed(host, data, ignore_errors)
|
||||
if ignore_errors:
|
||||
if 'failed' in result.result:
|
||||
result.result['failed'] = False
|
||||
if 'rc' in result.result:
|
||||
result.result['rc'] = 0
|
||||
else:
|
||||
self.callbacks.on_ok(host, data)
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue