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

concatenating stdout and stderr in runner/__init__'s _low_level_exec_command.

This commit is contained in:
Timothy Appnel 2012-07-31 16:59:45 -04:00
parent 9f7ad62376
commit b30f4688cd

View file

@ -616,9 +616,16 @@ class Runner(object):
stdin, stdout, stderr = conn.exec_command(cmd, tmp, sudo_user, sudoable=sudoable)
if type(stdout) != str:
return "\n".join(stdout.readlines())
out = "\n".join(stdout.readlines())
else:
return stdout
out = stdout
if type(stderr) != str:
err = "\n".join(stderr.readlines())
else:
err = stderr
return out + err
# *****************************************************