git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5631f96
)
add vserver name as the last command argument
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Thu, 17 Jun 2010 14:39:38 +0000
(14:39 +0000)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Thu, 17 Jun 2010 14:39:38 +0000
(14:39 +0000)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
a6d46e1
..
612e503
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-389,6
+389,8
@@
class VServer:
# enter vserver context
arg_subst = { 'runlevel': runlevel }
cmd_args = [cmd[0]] + map(lambda x: x % arg_subst, cmd[1:])
+ # add vserver name as the last command argument
+ cmd_args += [self.name]
cmd_file = "/vservers/" + self.name + cmd[0]
self.log(cmd_file)
if os.path.isfile(cmd_file):