Only strip trailing newlines from output, preserving other space

reviewable/pr18780/r1
Daniel Hokka Zakrisson 12 years ago
parent fba30c8fcb
commit 57df6da305

@ -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…
Cancel
Save