def _JobTimestampInner(fn, job):
  """Converts unavailable timestamp to L{_FS_UNAVAIL}.

  """
  timestamp = fn(job)

  if timestamp is None:
    return _FS_UNAVAIL
  else:
    return timestamp
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_JobTimestampInner/original