diff --git a/cccli/command.py b/cccli/command.py index 35480c5e3aa94aa34bfec5ca5b1514118e58020b..7ee6ffd944170adc0fb65000bc7f332ae349f828 100644 --- a/cccli/command.py +++ b/cccli/command.py @@ -222,7 +222,7 @@ class Command(object): self.printer.out() - def _startstopsdestroypauseresume(self, argv): + def _vm_action(self, argv): # arg stuff if len(argv) == 1: raise cmdBadArgument() @@ -244,7 +244,7 @@ class Command(object): len(objs)), "yes") != "yes": raise cmdWarning("Aborted") if len(objs) > 5: - if self.printer.ask("You request is on more than 5 objets. Are you really sure to %s its? (Yes, I am) "%argv[0], "Yes, I am") != "Yes, I am": + if self.printer.ask("You request is on more than 5 objets. Are you really sure to %s its? (Sir, yes Sir!) "%argv[0], "Sir, yes Sir!") != "Sir, yes Sir!": raise cmdWarning("Aborted") try: self.cli.rpc.call(argv[0],tql) @@ -253,27 +253,27 @@ class Command(object): def cmd_start(self, argv): '''Start objects''' - self._startstopsdestroypauseresume(argv) + self._vm_action(argv) cmd_start.usage = "start [tql]" def cmd_stop(self, argv): '''Stop objects''' - self._startstopsdestroypauseresume(argv) + self._vm_action(argv) cmd_stop.usage = "stop [tql]" def cmd_pause(self, argv): '''Pause objects''' - self._startstopsdestroypauseresume(argv) + self._vm_action(argv) cmd_pause.usage = "pause [tql]" def cmd_resume(self, argv): '''Resume objects''' - self._startstopsdestroypauseresume(argv) + self._vm_action(argv) cmd_resume.usage = "resume [tql]" def cmd_destroy(self, argv): '''Force objects to stop''' - self._startstopsdestroypauseresume(argv) + self._vm_action(argv) cmd_destroy.usage = "destroy [tql]" def cmd_clear(self, argv):