Revision 0fbae49a lib/ssconf.py

b/lib/ssconf.py
284 284
    constants.SS_RELEASE_VERSION,
285 285
    constants.SS_HYPERVISOR_LIST,
286 286
    constants.SS_MAINTAIN_NODE_HEALTH,
287
    constants.SS_UID_POOL,
287 288
    )
288 289
  _MAX_SIZE = 131072
289 290

  
......
441 442
    # we rely on the bool serialization here
442 443
    return data == "True"
443 444

  
445
  def GetUidPool(self):
446
    """Return the user-id pool definition string.
447

  
448
    The separator character is a newline.
449

  
450
    The return value can be parsed using uidpool.ParseUidPool():
451
      ss = ssconf.SimpleStore()
452
      uid_pool = uidpool.ParseUidPool(ss.GetUidPool(), separator="\n")
453

  
454
    """
455
    data = self._ReadFile(constants.SS_UID_POOL)
456
    return data
457

  
444 458

  
445 459
def GetMasterAndMyself(ss=None):
446 460
  """Get the master node and my own hostname.

Also available in: Unified diff