mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Keep result pristine for ignore_errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user