Revision 74f258b6
b/lib/cmdlib.py | ||
---|---|---|
3630 | 3630 |
|
3631 | 3631 |
# Gather data as requested |
3632 | 3632 |
if query.NQ_LIVE in self.requested_data: |
3633 |
node_data = lu.rpc.call_node_info(nodenames, lu.cfg.GetVGName(), |
|
3633 |
# filter out non-vm_capable nodes |
|
3634 |
toquery_nodes = [name for name in nodenames if all_info[name].vm_capable] |
|
3635 |
|
|
3636 |
node_data = lu.rpc.call_node_info(toquery_nodes, lu.cfg.GetVGName(), |
|
3634 | 3637 |
lu.cfg.GetHypervisorType()) |
3635 | 3638 |
live_data = dict((name, nresult.payload) |
3636 | 3639 |
for (name, nresult) in node_data.items() |
Also available in: Unified diff