def _GetNDParam(name):
  def _helper(ctx, _):
    if ctx.ndparams is None:
      return _FS_UNAVAIL
    else:
      return ctx.ndparams.get(name, None)
  return _helper
Return a field function to return an ND parameter out of the context.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetNDParam