Add module_stdout/stderr fields to list in 'debug' callback plugin
This commit is contained in:
parent
395566746e
commit
6a84772290
1 changed files with 2 additions and 2 deletions
|
@ -38,13 +38,13 @@ class CallbackModule(CallbackModule_default): # pylint: disable=too-few-public-
|
||||||
result['_ansible_verbose_always'] = True
|
result['_ansible_verbose_always'] = True
|
||||||
|
|
||||||
save = {}
|
save = {}
|
||||||
for key in ['stdout', 'stdout_lines', 'stderr', 'stderr_lines', 'msg']:
|
for key in ['stdout', 'stdout_lines', 'stderr', 'stderr_lines', 'msg', 'module_stdout', 'module_stderr']:
|
||||||
if key in result:
|
if key in result:
|
||||||
save[key] = result.pop(key)
|
save[key] = result.pop(key)
|
||||||
|
|
||||||
output = CallbackModule_default._dump_results(self, result)
|
output = CallbackModule_default._dump_results(self, result)
|
||||||
|
|
||||||
for key in ['stdout', 'stderr', 'msg']:
|
for key in ['stdout', 'stderr', 'msg', 'module_stdout', 'module_stderr']:
|
||||||
if key in save and save[key]:
|
if key in save and save[key]:
|
||||||
output += '\n\n%s:\n\n%s\n' % (key.upper(), save[key])
|
output += '\n\n%s:\n\n%s\n' % (key.upper(), save[key])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue