cast execute commands to str
This commit is contained in:
parent
2379fc056d
commit
65f6648f61
@ -54,6 +54,7 @@ def main(dom_id, command, only_this_vif=None):
|
||||
|
||||
def execute(*command, return_stdout=False):
|
||||
devnull = open(os.devnull, 'w')
|
||||
command = map(str, command)
|
||||
proc = subprocess.Popen(command, close_fds=True,
|
||||
stdout=subprocess.PIPE, stderr=devnull)
|
||||
devnull.close()
|
||||
|
Loading…
Reference in New Issue
Block a user