From 73cd3ef61729a2e163c76c156c3bdabda5a6f7ed Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 25 Oct 2012 14:26:37 +0200 Subject: [PATCH] Only strip trailing newlines from output, preserving other space --- library/command | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/command b/library/command index 31b253cda53..d7b18258a65 100755 --- a/library/command +++ b/library/command @@ -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),