Revision c1410048 lib/cmdlib/common.py

b/lib/cmdlib/common.py
426 426
               lu.cfg.GetNodeName(node_uuid))
427 427

  
428 428

  
429
def AdjustCandidatePool(lu, exceptions):
429
def AdjustCandidatePool(lu, exceptions, feedback_fn):
430 430
  """Adjust the candidate pool after node operations.
431 431

  
432 432
  """
......
436 436
               utils.CommaJoin(node.name for node in mod_list))
437 437
    for node in mod_list:
438 438
      lu.context.ReaddNode(node)
439
      cluster = lu.cfg.GetClusterInfo()
440
      AddNodeCertToCandidateCerts(lu, node.uuid, cluster)
441
      lu.cfg.Update(cluster, feedback_fn)
439 442
  mc_now, mc_max, _ = lu.cfg.GetMasterCandidateStats(exceptions)
440 443
  if mc_now > mc_max:
441 444
    lu.LogInfo("Note: more nodes are candidates (%d) than desired (%d)" %

Also available in: Unified diff