Revision 490acd18 lib/config.py

b/lib/config.py
1198 1198
    for node in self._config_data.nodes.values():
1199 1199
      if exceptions and node.name in exceptions:
1200 1200
        continue
1201
      if not (node.offline or node.drained):
1201
      if not (node.offline or node.drained) and node.master_capable:
1202 1202
        mc_max += 1
1203 1203
      if node.master_candidate:
1204 1204
        mc_now += 1
......
1239 1239
          break
1240 1240
        node = self._config_data.nodes[name]
1241 1241
        if (node.master_candidate or node.offline or node.drained or
1242
            node.name in exceptions):
1242
            node.name in exceptions or not node.master_capable):
1243 1243
          continue
1244 1244
        mod_list.append(node)
1245 1245
        node.master_candidate = True

Also available in: Unified diff