Revision ee513a66 lib/config.py

b/lib/config.py
809 809
    """Try to grow the candidate pool to the desired size.
810 810

  
811 811
    @rtype: list
812
    @return: list with the adjusted node names
812
    @return: list with the adjusted nodes (L{objects.Node} instances)
813 813

  
814 814
    """
815 815
    mc_now, mc_max = self._UnlockedGetMasterCandidateStats()
......
823 823
        node = self._config_data.nodes[name]
824 824
        if node.master_candidate or node.offline:
825 825
          continue
826
        mod_list.append(node.name)
826
        mod_list.append(node)
827 827
        node.master_candidate = True
828 828
        node.serial_no += 1
829 829
        mc_now += 1

Also available in: Unified diff