Do not remove exception from result, hide output.

This allows all callback plugins access to exception details.
This commit is contained in:
Matt Clay 2016-05-27 10:29:49 -07:00
parent 4c3c294a03
commit 126bc40ecf
4 changed files with 4 additions and 12 deletions

View file

@ -55,9 +55,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.action in C.MODULE_NO_JSON:
self._display.display(self._command_generic_msg(result._host.get_name(), result._result, "FAILED"), color=C.COLOR_ERROR)
else: