Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sjrpc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
sjrpc
Commits
a191228c
Commit
a191228c
authored
14 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
typo on vm related command
parent
e8c52e53
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cccli/command.py
+7
-7
7 additions, 7 deletions
cccli/command.py
with
7 additions
and
7 deletions
cccli/command.py
+
7
−
7
View file @
a191228c
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment