def ArchiveJobs(opts, args):
  client = GetClient()

  rcode = 0
  for job_id in args:
    if not client.ArchiveJob(job_id):
      ToStderr("Failed to archive job with ID '%s'", job_id)
      rcode = 1

  return rcode
Archive jobs.
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/ArchiveJobs