def _ConvWrapInner(convert, fn, ctx, item):
  value = fn(ctx, item)

  # Is the value an abnormal status?
  if compat.any(value is fs for fs in _FS_ALL):
    # Return right away
    return value

  # TODO: Should conversion function also receive context, item or both?
  return convert(value)
Wrapper for converting values.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_ConvWrapInner