Revision f56618e0 lib/ssconf.py

b/lib/ssconf.py
127 127
  _VALID_KEYS = (
128 128
    constants.SS_CLUSTER_NAME,
129 129
    constants.SS_FILE_STORAGE_DIR,
130
    constants.SS_MASTER_CANDIDATES,
130 131
    constants.SS_MASTER_IP,
131 132
    constants.SS_MASTER_NETDEV,
132 133
    constants.SS_MASTER_NODE,
......
210 211
    """
211 212
    return self._ReadFile(constants.SS_FILE_STORAGE_DIR)
212 213

  
214
  def GetMasterCandidates(self):
215
    """Return the list of master candidates.
216

  
217
    """
218
    data = self._ReadFile(constants.SS_MASTER_CANDIDATES)
219
    nl = data.splitlines(False)
220
    return nl
221

  
213 222
  def GetMasterIP(self):
214 223
    """Get the IP of the master node for this cluster.
215 224

  

Also available in: Unified diff