Revision 692738fc
b/lib/cmdlib.py | ||
---|---|---|
699 | 699 |
_CheckNicsBridgesExist(lu, instance.nics, node) |
700 | 700 |
|
701 | 701 |
|
702 |
def _GetNodeSecondaryInstances(cfg, node_name): |
|
703 |
"""Returns secondary instances on a node. |
|
704 |
|
|
705 |
""" |
|
706 |
instances = [] |
|
707 |
|
|
708 |
for (_, inst) in cfg.GetAllInstancesInfo().iteritems(): |
|
709 |
if node_name in inst.secondary_nodes: |
|
710 |
instances.append(inst) |
|
711 |
|
|
712 |
return instances |
|
713 |
|
|
714 |
|
|
702 | 715 |
class LUDestroyCluster(NoHooksLU): |
703 | 716 |
"""Logical unit for destroying the cluster. |
704 | 717 |
|
Also available in: Unified diff