From: Barış Metin Date: Thu, 17 Jun 2010 14:39:38 +0000 (+0000) Subject: add vserver name as the last command argument X-Git-Tag: util-vserver-pl-0.4-11~2 X-Git-Url: http://git.onelab.eu/?p=util-vserver-pl.git;a=commitdiff_plain;h=33bf49cf92e3da4c083285a1d74b46af24e1d212 add vserver name as the last command argument --- diff --git a/python/vserver.py b/python/vserver.py index a6d46e1..612e503 100644 --- 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):