Commit 5b36e374 by Michael DeHaan

Merge pull request #1451 from dhozac/command-strip-newlines

Only strip trailing newlines from output, preserving other space
parents c17aad3a 73cd3ef6
......@@ -111,8 +111,8 @@ def main():
module.exit_json(
cmd = args,
stdout = out.strip(),
stderr = err.strip(),
stdout = out.rstrip("\r\n"),
stderr = err.rstrip("\r\n"),
rc = cmd.returncode,
start = str(startd),
end = str(endd),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment