Strip trailing newlines from command module, which happens in some shell commands
This commit is contained in:
parent
8d06c074b1
commit
c86b388812
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue