Make sure tuples returned by _get_item() are handled correctly in formatting

Fixes #14800
This commit is contained in:
James Cammarata 2016-03-17 14:19:28 -04:00
parent 0a457230ab
commit 1ee6d489ab

View file

@ -175,7 +175,7 @@ class CallbackModule(CallbackBase):
else: else:
msg += ": [%s]" % result._host.get_name() msg += ": [%s]" % result._host.get_name()
msg += " => (item=%s)" % (self._get_item(result._result)) msg += " => (item=%s)" % (self._get_item(result._result),)
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result: if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result:
msg += " => %s" % self._dump_results(result._result) msg += " => %s" % self._dump_results(result._result)