def PollJob(rapi_client, job_id, reporter): """Function to poll for the result of a job. @param rapi_client: RAPI client instance @type job_id: number @param job_id: Job ID @type reporter: L{cli.JobPollReportCbBase} @param reporter: PollJob reporter instance """ return cli.GenericPollJob(job_id, RapiJobPollCb(rapi_client), reporter)
def PollJob(rapi_client, job_id, reporter): """Function to poll for the result of a job. @param rapi_client: RAPI client instance @type job_id: number @param job_id: Job ID @type reporter: L{cli.JobPollReportCbBase} @param reporter: PollJob reporter instance @return: The opresult of the job @raise errors.JobLost: If job can't be found @raise errors.OpExecError: if job didn't succeed @see: L{ganeti.cli.GenericPollJob} """ return cli.GenericPollJob(job_id, RapiJobPollCb(rapi_client), reporter)