Only strip trailing newlines from output, preserving other space

pull/1648/head
Daniel Hokka Zakrisson 12 years ago
parent 895715b65b
commit 73cd3ef617

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

Loading…
Cancel
Save