Revision 8dddc5bc lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
2125 | 2125 |
drbd_helper = self.cfg.GetDRBDHelper() |
2126 | 2126 |
hypervisors = self.cfg.GetClusterInfo().enabled_hypervisors |
2127 | 2127 |
cluster = self.cfg.GetClusterInfo() |
2128 |
nodelist = utils.NiceSort(self.cfg.GetNodeList()) |
|
2129 |
nodeinfo = [self.cfg.GetNodeInfo(nname) for nname in nodelist] |
|
2130 |
nodeinfo_byname = dict(zip(nodelist, nodeinfo)) |
|
2131 |
instancelist = utils.NiceSort(self.cfg.GetInstanceList()) |
|
2132 |
instanceinfo = dict((iname, self.cfg.GetInstanceInfo(iname)) |
|
2133 |
for iname in instancelist) |
|
2128 |
nodeinfo_byname = self.cfg.GetAllNodesInfo() |
|
2129 |
nodelist = utils.NiceSort(nodeinfo_byname.keys()) |
|
2130 |
nodeinfo = [nodeinfo_byname[nname] for nname in nodelist] |
|
2131 |
instanceinfo = self.cfg.GetAllInstancesInfo() |
|
2132 |
instancelist = utils.NiceSort(instanceinfo.keys()) |
|
2134 | 2133 |
groupinfo = self.cfg.GetAllNodeGroupsInfo() |
2135 | 2134 |
i_non_redundant = [] # Non redundant instances |
2136 | 2135 |
i_non_a_balanced = [] # Non auto-balanced instances |
Also available in: Unified diff