From 57df6da3053a6874417f7d0e7d9ce935ef667255 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 --- command | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command b/command index 31b253cda53..d7b18258a65 100755 --- a/command +++ b/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),