+ ret = os.spawnvp(os.P_WAIT, 'vuseradd', options + [vm_name])
+ 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)
+ else:
+ out += "killed by signal %d" % os.WTERMSIG(ret)
+ raise SystemError, out