Only strip trailing newlines from output, preserving other space

This commit is contained in:
Daniel Hokka Zakrisson 2012-10-25 14:26:37 +02:00
parent fba30c8fcb
commit 57df6da305

View file

@ -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),