def ChangePriority(opts, args):
  if opts.priority is None:
    ToStderr("--priority option must be given.")
    return constants.EXIT_FAILURE

  return _MultiJobAction(opts, args, None, None, None,
                         "Change priority of job(s) listed above?",
                         lambda cl, job_id:
                           cl.ChangeJobPriority(job_id, opts.priority))
Change priority of jobs.
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/ChangePriority