def ParseJobId(job_id):
  """Parses a job ID and converts it to integer.

  """
  try:
    return int(job_id)
  except (ValueError, __HOLE__):
    raise errors.ParameterError("Invalid job ID '%s'" % job_id)
dataset/ETHPy150Open ganeti/ganeti/lib/jstore.py/ParseJobId