1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #9997 from shawnsi/stdout_lines

Add stdout_lines to results when using with_items
This commit is contained in:
Toshio Kuratomi 2015-01-15 11:24:58 -08:00
commit be4dbe76b9

View file

@ -817,6 +817,10 @@ class Runner(object):
port,
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)
if result.comm_ok == False:
all_comm_ok = False