Revision 0779e3aa lib/config.py

b/lib/config.py
802 802
      raise errors.ConfigurationError("Incomplete configuration"
803 803
                                      " (missing cluster.rsahostkeypub)")
804 804
    self._config_data = data
805
    # init the last serial as -1 so that the next write will cause
806
    # ssconf update
807
    self._last_cluster_serial = -1
805 808

  
806 809
  def _DistributeConfig(self):
807 810
    """Distribute the configuration to the other nodes.
......
860 863
    self._DistributeConfig()
861 864

  
862 865
    # Write ssconf files on all nodes (including locally)
863
    rpc.RpcRunner.call_write_ssconf_files(self._UnlockedGetNodeList())
866
    if self._last_cluster_serial < self._config_data.cluster.serial_no:
867
      rpc.RpcRunner.call_write_ssconf_files(self._UnlockedGetNodeList())
868
      self._last_cluster_serial = self._config_data.cluster.serial_no
864 869

  
865 870
  @locking.ssynchronized(_config_lock)
866 871
  def InitConfig(self, version, cluster_config, master_node_config):

Also available in: Unified diff