def _GetHvInfo(name, hvparams, get_hv_fn=hypervisor.GetHypervisor):
  return get_hv_fn(name).GetNodeInfo(hvparams=hvparams)
Retrieves node information from a hypervisor.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/_GetHvInfo