cast execute commands to str

This commit is contained in:
Eric Windisch 2011-03-11 12:09:20 -05:00
parent 2379fc056d
commit 65f6648f61

View File

@ -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()