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

Only strip trailing newlines from output, preserving other space
reviewable/pr18780/r1
Michael DeHaan 12 years ago
commit 995c0a9f88

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