Python...
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 23 Oct 2007 17:53:36 +0000 (17:53 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 23 Oct 2007 17:53:36 +0000 (17:53 +0000)
python/vserver.py

index de8c164..24b4560 100644 (file)
@@ -509,7 +509,7 @@ def create(vm_name, static = False, ctor = VServer):
     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)