mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Do not remove exception from result, hide output.
This allows all callback plugins access to exception details.
This commit is contained in:
parent
4c3c294a03
commit
126bc40ecf
4 changed files with 4 additions and 12 deletions
|
@ -46,9 +46,6 @@ class CallbackModule(CallbackBase):
|
|||
|
||||
self._display.display(msg, color=C.COLOR_ERROR)
|
||||
|
||||
# finally, remove the exception from the result so it's not shown every time
|
||||
del result._result['exception']
|
||||
|
||||
if result._task.loop and 'results' in result._result:
|
||||
self._process_items(result)
|
||||
|
||||
|
@ -193,9 +190,6 @@ class CallbackModule(CallbackBase):
|
|||
|
||||
self._display.display(msg, color=C.COLOR_ERROR)
|
||||
|
||||
# finally, remove the exception from the result so it's not shown every time
|
||||
del result._result['exception']
|
||||
|
||||
msg = "failed: "
|
||||
if delegated_vars:
|
||||
msg += "[%s -> %s]" % (result._host.get_name(), delegated_vars['ansible_host'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue