Package ganeti :: Package rapi :: Module client_utils
[hide private]
[frames] | no frames]

Module client_utils

source code

RAPI client utilities.

Classes [hide private]
  RapiJobPollCb
Functions [hide private]
 
PollJob(rapi_client, job_id, reporter)
Function to poll for the result of a job.
source code
Variables [hide private]
  HTTP_NOT_FOUND = 404

Imports: constants, cli, client


Function Details [hide private]

PollJob(rapi_client, job_id, reporter)

source code 

Function to poll for the result of a job.

Parameters:
  • rapi_client - RAPI client instance
  • job_id (number) - Job ID
  • reporter (cli.JobPollReportCbBase) - PollJob reporter instance