Revision f6bd6e98 lib/config.py
b/lib/config.py | ||
---|---|---|
861 | 861 |
self._DistributeConfig() |
862 | 862 |
|
863 | 863 |
@locking.ssynchronized(_config_lock) |
864 |
def InitConfig(self, cluster_config, master_node_config): |
|
864 |
def InitConfig(self, version, cluster_config, master_node_config):
|
|
865 | 865 |
"""Create the initial cluster configuration. |
866 | 866 |
|
867 | 867 |
It will contain the current node, which will also be the master |
868 | 868 |
node, and no instances. |
869 | 869 |
|
870 |
@type version: int |
|
871 |
@param version: Configuration version |
|
870 | 872 |
@type cluster_config: objects.Cluster |
871 | 873 |
@param cluster_config: Cluster configuration |
872 | 874 |
@type master_node_config: objects.Node |
... | ... | |
877 | 879 |
master_node_config.name: master_node_config, |
878 | 880 |
} |
879 | 881 |
|
880 |
self._config_data = objects.ConfigData(cluster=cluster_config, |
|
882 |
self._config_data = objects.ConfigData(version=version, |
|
883 |
cluster=cluster_config, |
|
881 | 884 |
nodes=nodes, |
882 | 885 |
instances={}, |
883 | 886 |
serial_no=1) |
Also available in: Unified diff