summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-10-23 09:13:31 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-10-23 09:15:22 -0700
commit99c6f77e593a36ac26341d77fddd898665bde3ae (patch)
treed9031277bc887902479351cc5ee7ba8971203bf4
parent08ca749c94741613c4c06f3ad2854419949ecf0e (diff)
downloadansible-99c6f77e593a36ac26341d77fddd898665bde3ae.tar.gz
Fix callback
-rw-r--r--lib/ansible/plugins/callback/minimal.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/plugins/callback/minimal.py b/lib/ansible/plugins/callback/minimal.py
index fcdc175053..eaada8dd53 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')