Commit dfc8ad25 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

RAPI client: Don't assume job IDs to be numeric


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarDavid Knowles <dknowles@google.com>
parent 20b509de
......@@ -760,7 +760,7 @@ class GanetiRapiClient(object):
@return: job status
"""
return self._SendRequest(HTTP_GET, "/2/jobs/%d" % job_id, None, None)
return self._SendRequest(HTTP_GET, "/2/jobs/%s" % job_id, None, None)
def WaitForJobChange(self, job_id, fields, prev_job_info, prev_log_serial):
"""Waits for job changes.
......@@ -790,7 +790,7 @@ class GanetiRapiClient(object):
if dry_run:
query.append(("dry-run", 1))
return self._SendRequest(HTTP_DELETE, "/2/jobs/%d" % job_id, query, None)
return self._SendRequest(HTTP_DELETE, "/2/jobs/%s" % job_id, query, None)
def GetNodes(self, bulk=False):
"""Gets all nodes in the cluster.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment