Loading cccli/commands/vm.py +3 −1 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ class Command_start(TqlCommand): def __init__(self, cli, argv0): TqlCommand.__init__(self, cli, argv0) self.tql_filter += "&r=vm&status=stopped" self.add_option('-p', '--pause', action='store_true', dest='pause', default=False, help='Start VM in pause state') def __call__(self, argv): # arg parse Loading @@ -37,7 +39,7 @@ class Command_start(TqlCommand): if len(self.args) != 1: raise cmdBadArgument() # rpc call self.rpccall("start", self.args[0]) self.rpccall("start", self.args[0], self.options.pause) def remote_functions(self): return set(("start",)) Loading Loading
cccli/commands/vm.py +3 −1 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ class Command_start(TqlCommand): def __init__(self, cli, argv0): TqlCommand.__init__(self, cli, argv0) self.tql_filter += "&r=vm&status=stopped" self.add_option('-p', '--pause', action='store_true', dest='pause', default=False, help='Start VM in pause state') def __call__(self, argv): # arg parse Loading @@ -37,7 +39,7 @@ class Command_start(TqlCommand): if len(self.args) != 1: raise cmdBadArgument() # rpc call self.rpccall("start", self.args[0]) self.rpccall("start", self.args[0], self.options.pause) def remote_functions(self): return set(("start",)) Loading