Revision a295eb80 lib/cmdlib/node.py
b/lib/cmdlib/node.py | ||
---|---|---|
1176 | 1176 |
# FIXME: This currently maps everything to lvm, this should be more |
1177 | 1177 |
# flexible |
1178 | 1178 |
vg_req = rpc.BuildVgInfoQuery(lu.cfg) |
1179 |
default_hypervisor = lu.cfg.GetHypervisorType() |
|
1180 |
hvparams = lu.cfg.GetClusterInfo().hvparams[default_hypervisor] |
|
1181 |
hvspecs = [(default_hypervisor, hvparams)] |
|
1179 | 1182 |
node_data = lu.rpc.call_node_info(toquery_nodes, vg_req, |
1180 |
[lu.cfg.GetHypervisorType()], es_flags)
|
|
1183 |
hvspecs, es_flags)
|
|
1181 | 1184 |
live_data = dict((name, rpc.MakeLegacyNodeInfo(nresult.payload)) |
1182 | 1185 |
for (name, nresult) in node_data.items() |
1183 | 1186 |
if not nresult.fail_msg and nresult.payload) |
Also available in: Unified diff