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

Only strip trailing newlines from output, preserving other space
pull/4420/head
Michael DeHaan 2012-10-25 18:21:16 -07:00
commit 5b36e374d7
1 changed files with 2 additions and 2 deletions

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