Revision 75e914fb lib/cmdlib.py

b/lib/cmdlib.py
1556 1556
      self.cluster.beparams[constants.BEGR_DEFAULT] = self.new_beparams
1557 1557
    if self.op.candidate_pool_size is not None:
1558 1558
      self.cluster.candidate_pool_size = self.op.candidate_pool_size
1559
      # we need to update the pool size here, otherwise the save will fail
1560
      _AdjustCandidatePool(self)
1559 1561

  
1560 1562
    self.cfg.Update(self.cluster)
1561 1563

  
1562
    # we want to update nodes after the cluster so that if any errors
1563
    # happen, we have recorded and saved the cluster info
1564
    if self.op.candidate_pool_size is not None:
1565
      _AdjustCandidatePool(self)
1566

  
1567 1564

  
1568 1565
class LURedistributeConfig(NoHooksLU):
1569 1566
  """Force the redistribution of cluster configuration.

Also available in: Unified diff