Revision 8eb148ae lib/bootstrap.py

b/lib/bootstrap.py
446 446
  return rcode
447 447

  
448 448

  
449
def GetMaster():
450
  """Returns the current master node.
451

  
452
  This is a separate function in bootstrap since it's needed by
453
  gnt-cluster, and instead of importing directly ssconf, it's better
454
  to abstract it in bootstrap, where we do use ssconf in other
455
  functions too.
456

  
457
  """
458
  sstore = ssconf.SimpleStore()
459

  
460
  old_master, _ = ssconf.GetMasterAndMyself(sstore)
461

  
462
  return old_master
463

  
464

  
449 465
def GatherMasterVotes(node_list):
450 466
  """Check the agreement on who is the master.
451 467

  

Also available in: Unified diff