diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py index d48a04d9b9..ea18134b5c 100644 --- a/lib/ansible/plugins/callback/default.py +++ b/lib/ansible/plugins/callback/default.py @@ -81,7 +81,7 @@ class CallbackModule(CallbackBase): else: if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result and result._task.action != 'include': - msg += " => %s" % self._dump_results(result._result) + msg += " => %s" % (self._dump_results(result._result),) self._display.display(msg, color=color) self._handle_warnings(result._result) @@ -139,7 +139,7 @@ class CallbackModule(CallbackBase): msg = "ok: [%s]" % result._host.get_name() color = 'green' - msg += " => (item=%s)" % result._result['item'] + msg += " => (item=%s)" % (result._result['item'],) if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result and result._task.action != 'include': msg += " => %s" % self._dump_results(result._result)