def _GetNDParam(name):
  """Return a field function to return an ND parameter out of the context.

  """
  def _helper(ctx, _):
    if ctx.ndparams == None:
      return _FS_UNAVAIL
    else:
      return ctx.ndparams.get(name, None)
  return _helper
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetNDParam/operator `is` -> `==`