Revision 1059337d lib/ssconf.py

b/lib/ssconf.py
49 49
  constants.SS_GLUSTER_STORAGE_DIR,
50 50
  constants.SS_MASTER_CANDIDATES,
51 51
  constants.SS_MASTER_CANDIDATES_IPS,
52
  constants.SS_MASTER_CANDIDATES_CERTS,
52 53
  constants.SS_MASTER_IP,
53 54
  constants.SS_MASTER_NETDEV,
54 55
  constants.SS_MASTER_NETMASK,
......
243 244
    nl = data.splitlines(False)
244 245
    return nl
245 246

  
247
  def GetMasterCandidatesCertMap(self):
248
    """Returns the map of master candidate UUIDs to ssl cert.
249

  
250
    @rtype: dict of string to string
251
    @return: dictionary mapping the master candidates' UUIDs
252
      to their SSL certificate digests
253

  
254
    """
255
    data = self._ReadFile(constants.SS_MASTER_CANDIDATES_CERTS)
256
    lines = data.splitlines(False)
257
    certs = {}
258
    for line in lines:
259
      (node_uuid, cert_digest) = line.split("=")
260
      certs[node_uuid] = cert_digest
261
    return certs
262

  
246 263
  def GetMasterIP(self):
247 264
    """Get the IP of the master node for this cluster.
248 265

  

Also available in: Unified diff