Only strip trailing newlines from output, preserving other space
This commit is contained in:
parent
895715b65b
commit
73cd3ef617
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ def main():
|
||||||
|
|
||||||
module.exit_json(
|
module.exit_json(
|
||||||
cmd = args,
|
cmd = args,
|
||||||
stdout = out.strip(),
|
stdout = out.rstrip("\r\n"),
|
||||||
stderr = err.strip(),
|
stderr = err.rstrip("\r\n"),
|
||||||
rc = cmd.returncode,
|
rc = cmd.returncode,
|
||||||
start = str(startd),
|
start = str(startd),
|
||||||
end = str(endd),
|
end = str(endd),
|
||||||
|
|
Loading…
Reference in a new issue