mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
Merge pull request #9997 from shawnsi/stdout_lines
Add stdout_lines to results when using with_items
This commit is contained in:
commit
be4dbe76b9
1 changed files with 4 additions and 0 deletions
|
@ -817,6 +817,10 @@ class Runner(object):
|
||||||
port,
|
port,
|
||||||
complex_args=complex_args
|
complex_args=complex_args
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if 'stdout' in result.result and 'stdout_lines' not in result.result:
|
||||||
|
result.result['stdout_lines'] = result.result['stdout'].splitlines()
|
||||||
|
|
||||||
results.append(result.result)
|
results.append(result.result)
|
||||||
if result.comm_ok == False:
|
if result.comm_ok == False:
|
||||||
all_comm_ok = False
|
all_comm_ok = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue