mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
if we already have stderr, we don't need stderr_lines (#44675)
This commit is contained in:
parent
7760b04020
commit
329d3b892b
1 changed files with 4 additions and 0 deletions
|
@ -114,6 +114,10 @@ class CallbackModule(Default):
|
||||||
if 'stdout' in abridged_result and 'stdout_lines' in abridged_result:
|
if 'stdout' in abridged_result and 'stdout_lines' in abridged_result:
|
||||||
abridged_result['stdout_lines'] = '<omitted>'
|
abridged_result['stdout_lines'] = '<omitted>'
|
||||||
|
|
||||||
|
# if we already have stderr, we don't need stderr_lines
|
||||||
|
if 'stderr' in abridged_result and 'stderr_lines' in abridged_result:
|
||||||
|
abridged_result['stderr_lines'] = '<omitted>'
|
||||||
|
|
||||||
if abridged_result:
|
if abridged_result:
|
||||||
dumped += '\n'
|
dumped += '\n'
|
||||||
dumped += to_text(yaml.dump(abridged_result, allow_unicode=True, width=1000, Dumper=AnsibleDumper, default_flow_style=False))
|
dumped += to_text(yaml.dump(abridged_result, allow_unicode=True, width=1000, Dumper=AnsibleDumper, default_flow_style=False))
|
||||||
|
|
Loading…
Reference in a new issue