Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
c4dbb30a
Commit
c4dbb30a
authored
Jun 12, 2008
by
Michael Hanselmann
Browse files
Remove unreachable code from cli.SubmitOpCode
Reviewed-by: iustinp
parent
4c8dbc12
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/cli.py
View file @
c4dbb30a
...
...
@@ -377,6 +377,7 @@ def SubmitOpCode(op, proc=None, feedback_fn=None):
interaction functions.
"""
# TODO: Fix feedback_fn situation.
cl
=
luxi
.
Client
()
job
=
opcodes
.
Job
(
op_list
=
[
op
])
jid
=
SubmitJob
(
job
)
...
...
@@ -407,12 +408,6 @@ def SubmitOpCode(op, proc=None, feedback_fn=None):
raise
errors
.
OpExecError
(
op_result
[
0
])
return
op_result
[
0
]
if
feedback_fn
is
None
:
feedback_fn
=
logger
.
ToStdout
if
proc
is
None
:
proc
=
mcpu
.
Processor
(
feedback
=
feedback_fn
)
return
proc
.
ExecOpCode
(
op
)
def
SubmitJob
(
job
,
cl
=
None
):
if
cl
is
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment