mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix callback
This commit is contained in:
parent
08ca749c94
commit
99c6f77e59
1 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ class CallbackModule(CallbackBase):
|
|||
if result._task.action in C.MODULE_NO_JSON:
|
||||
self._display.display(self._command_generic_msg(result._host.get_name(), result._result,"FAILED"), color='red')
|
||||
else:
|
||||
abridged_result = result.copy(result._result)
|
||||
abridged_result = result._result.copy()
|
||||
abridged_result.pop('invocation', None)
|
||||
self._display.display("%s | FAILED! => %s" % (result._host.get_name(), self._dump_results(abridged_result, indent=4)), color='red')
|
||||
|
||||
|
@ -69,7 +69,7 @@ class CallbackModule(CallbackBase):
|
|||
if result._task.action in C.MODULE_NO_JSON:
|
||||
self._display.display(self._command_generic_msg(result._host.get_name(), result._result,"SUCCESS"), color='green')
|
||||
else:
|
||||
abridged_result = result.copy(result._result)
|
||||
abridged_result = result._result.copy()
|
||||
abridged_result.pop('invocation', None)
|
||||
self._display.display("%s | SUCCESS => %s" % (result._host.get_name(), self._dump_results(abridged_result, indent=4)), color='green')
|
||||
self._handle_warnings(result._result)
|
||||
|
@ -78,7 +78,7 @@ class CallbackModule(CallbackBase):
|
|||
self._display.display("%s | SKIPPED" % (result._host.get_name()), color='cyan')
|
||||
|
||||
def v2_runner_on_unreachable(self, result):
|
||||
abridged_result = result.copy(result._result)
|
||||
abridged_result = result._result.copy()
|
||||
abridged_result.pop('invocation', None)
|
||||
self._display.display("%s | UNREACHABLE! => %s" % (result._host.get_name(), self._dump_results(abridged_result, indent=4)), color='yellow')
|
||||
|
||||
|
|
Loading…
Reference in a new issue