Revision 7d60c3b5 lib/cmdlib.py

b/lib/cmdlib.py
4213 4213

  
4214 4214
    node_list = self.owned_locks(locking.LEVEL_NODE)
4215 4215

  
4216
    vm_capable_nodes = [node.name
4217
                        for node in self.cfg.GetAllNodesInfo().values()
4218
                        if node.name in node_list and node.vm_capable]
4219

  
4216 4220
    # if vg_name not None, checks given volume group on all nodes
4217 4221
    if self.op.vg_name:
4218
      vglist = self.rpc.call_vg_list(node_list)
4219
      for node in node_list:
4222
      vglist = self.rpc.call_vg_list(vm_capable_nodes)
4223
      for node in vm_capable_nodes:
4220 4224
        msg = vglist[node].fail_msg
4221 4225
        if msg:
4222 4226
          # ignoring down node

Also available in: Unified diff