diff --git a/library/command b/library/command index 3c74cc03b3d..7413db7b94e 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),