git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b74b47
)
Python...
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 23 Oct 2007 17:53:36 +0000
(17:53 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 23 Oct 2007 17:53:36 +0000
(17:53 +0000)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
de8c164
..
24b4560
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-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)