From ad9f1015342aa074f74fcdcf1f31d1b920c6f6e0 Mon Sep 17 00:00:00 2001 From: "kyosang@163.com" Date: Mon, 20 Mar 2023 22:14:05 +0800 Subject: [PATCH] Fix grey upgrade turn on enable_ssl error. --- script/impl/upgrade/UpgradeImpl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/impl/upgrade/UpgradeImpl.py b/script/impl/upgrade/UpgradeImpl.py index ff507950..64b21884 100644 --- a/script/impl/upgrade/UpgradeImpl.py +++ b/script/impl/upgrade/UpgradeImpl.py @@ -1088,6 +1088,9 @@ class UpgradeImpl: raise Exception(str(er) + "\nFailed to restore CMServer parameters. " + "You may restore manually with file.") self.context.logger.debug("WARNING: Failed to restore the CMServer parameters.") + if os.path.isfile(os.path.join(self.context.upgradeBackupPath, const.GREY_UPGRADE_STEP_FILE)) and \ + self.context.action not in [const.ACTION_AUTO_ROLLBACK, const.ACTION_COMMIT_UPGRADE]: + return # open enable_ssl parameter self.set_enable_ssl("on") -- Gitee