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
c7f5f338
Commit
c7f5f338
authored
Nov 21, 2008
by
Oleksiy Mishchenko
Browse files
RAPI: Cancel a job
Reviewed-by: imsnah
parent
00430f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/rapi/rlib2.py
View file @
c7f5f338
...
...
@@ -77,6 +77,14 @@ class R_2_jobs_id(baserlib.R_Generic):
result
=
luxi
.
Client
().
QueryJobs
([
job_id
,
],
fields
)[
0
]
return
baserlib
.
MapFields
(
fields
,
result
)
def
DELETE
(
self
):
"""Cancel not-yet-started job.
"""
job_id
=
self
.
items
[
0
]
result
=
luxi
.
Client
().
CancelJob
(
job_id
)
return
result
class
R_2_nodes
(
baserlib
.
R_Generic
):
"""/2/nodes resource.
...
...
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