cmd_args = [cmd[0]] + map(lambda x: x % arg_subst,
cmd[1:])
print >>log, "executing '%s'" % " ".join(cmd_args)
- os.spawnvp(os.P_WAIT,cmd[0],cmd_args)
+ os.spawnvp(os.P_NOWAIT,cmd[0],cmd_args)
except:
traceback.print_exc()
os._exit(1)
if static:
options += ['--static']
ret = os.spawnvp(os.P_WAIT, 'vuseradd', options + [vm_name])
- if !os.WIFEXITED(ret) || os.WEXITSTATUS(ret) != 0:
+ if not os.WIFEXITED(ret) or os.WEXITSTATUS(ret) != 0:
out = "system command ('%s') " % options
if os.WIFEXITED(ret):
out += "failed, rc = %d" % os.WEXITSTATUS(ret)