From 77018a43a853586d2d16a26725e780663be0826b Mon Sep 17 00:00:00 2001 From: Michele Tartara Date: Tue, 18 Jun 2013 07:32:31 +0000 Subject: [PATCH] Update config version number when downgrading The downgrade option of the cfgupgrade tool was not changing the version number in the configuration file of the cluster while performing the downgrade. Signed-off-by: Michele Tartara Reviewed-by: Guido Trotter --- tools/cfgupgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cfgupgrade b/tools/cfgupgrade index 0508387..1ba52ed 100755 --- a/tools/cfgupgrade +++ b/tools/cfgupgrade @@ -321,6 +321,8 @@ def DowngradeInstances(config_data): def DowngradeAll(config_data): # Any code specific to a particular version should be labeled that way, so # it can be removed when updating to the next version. + config_data["version"] = constants.BuildVersion(DOWNGRADE_MAJOR, + DOWNGRADE_MINOR, 0) DowngradeCluster(config_data) DowngradeGroups(config_data) DowngradeInstances(config_data) -- 1.7.10.4