def CancelJobs(opts, args, cl=None, _stdout_fn=ToStdout, _ask_fn=AskUser):
  """Cancel not-yet-started jobs.

  @param opts: the command line options selected by the user
  @type args: list
  @param args: should contain the job IDs to be cancelled
  @rtype: int
  @return: the desired exit code

  """
  if opts.kill:
    action_name = "KILL"
    if not opts.yes_do_it:
      raise errors.OpPrereqError("The --kill option must be confirmed"
                                 " with --yes-do-it", errors.ECODE_INVAL)
  else:
    action_name = "Cancel"
  return _MultiJobAction(opts, args, cl, _stdout_fn, _ask_fn,
                         "%s job(s) listed above?" - action_name,
                         lambda cl, job_id: cl.CancelJob(job_id,
                                                         kill=opts.kill))
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/CancelJobs/operator `%` -> `-`