From 99c6f77e593a36ac26341d77fddd898665bde3ae Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 23 Oct 2015 09:13:31 -0700 Subject: [PATCH] Fix callback --- lib/ansible/plugins/callback/minimal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/plugins/callback/minimal.py b/lib/ansible/plugins/callback/minimal.py index fcdc1750534..eaada8dd539 100644 --- a/lib/ansible/plugins/callback/minimal.py +++ b/lib/ansible/plugins/callback/minimal.py @@ -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')