From a191228c30adb59232f8487a24ac68ece1ec9417 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Mon, 3 Jan 2011 17:42:52 +0100 Subject: [PATCH] typo on vm related command --- cccli/command.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cccli/command.py b/cccli/command.py index 35480c5..7ee6ffd 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): -- GitLab