updated commands that return output to strip it before returning
This commit is contained in:
parent
d3bd61ddcf
commit
870d87804b
2 changed files with 4 additions and 4 deletions
|
@ -101,7 +101,7 @@ class VnodeClient(object):
|
|||
stdout.close()
|
||||
stderr.close()
|
||||
status = p.wait()
|
||||
return status, output
|
||||
return status, output.strip()
|
||||
|
||||
def check_cmd(self, cmd):
|
||||
"""
|
||||
|
@ -115,7 +115,7 @@ class VnodeClient(object):
|
|||
status, output = self.cmd_output(cmd)
|
||||
if status:
|
||||
raise subprocess.CalledProcessError(status, cmd, output)
|
||||
return status, output
|
||||
return status, output.strip()
|
||||
|
||||
def popen(self, cmd):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue