Revision 5c465a95 lib/ssconf.py

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

  
......
432 433
    nl = data.splitlines(False)
433 434
    return nl
434 435

  
436
  def GetMaintainNodeHealth(self):
437
    """Return the value of the maintain_node_health option.
438

  
439
    """
440
    data = self._ReadFile(constants.SS_MAINTAIN_NODE_HEALTH)
441
    # we rely on the bool serialization here
442
    return data == "True"
443

  
435 444

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

Also available in: Unified diff