def _ParseJobIds(args):
  try:
    return [int(a) for a in args]
  except (ValueError, TypeError), err:
    raise errors.OpPrereqError("Invalid job ID passed: %s" % err,
                               errors.ECODE_INVAL)
Parses a list of string job IDs into integers.
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/_ParseJobIds