Only strip trailing newlines from output, preserving other space

parent 895715b6
...@@ -111,8 +111,8 @@ def main(): ...@@ -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),
......
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