Strip trailing newlines from command module, which happens in some shell commands
This commit is contained in:
parent
42b3eccbb2
commit
749b00a571
1 changed files with 2 additions and 2 deletions
4
command
4
command
|
@ -64,8 +64,8 @@ if err is None:
|
||||||
err = ''
|
err = ''
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
"stdout" : out,
|
"stdout" : out.strip(),
|
||||||
"stderr" : err,
|
"stderr" : err.strip(),
|
||||||
"rc" : cmd.returncode,
|
"rc" : cmd.returncode,
|
||||||
"start" : str(startd),
|
"start" : str(startd),
|
||||||
"end" : str(endd),
|
"end" : str(endd),
|
||||||
|
|
Loading…
Reference in a new issue