From c86b38881245151dc71fc011e83d7195ee1eb4e3 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 4 Apr 2012 10:30:22 -0400 Subject: [PATCH] Strip trailing newlines from command module, which happens in some shell commands --- library/command | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/command b/library/command index 3c74cc03b3..7413db7b94 100755 --- a/library/command +++ b/library/command @@ -64,8 +64,8 @@ if err is None: err = '' result = { - "stdout" : out, - "stderr" : err, + "stdout" : out.strip(), + "stderr" : err.strip(), "rc" : cmd.returncode, "start" : str(startd), "end" : str(endd),