From f3b697c9f98ad244b3c3d8a6e14a54090d3d7ad4 Mon Sep 17 00:00:00 2001 From: YaqinLi Date: Wed, 13 Dec 2023 22:55:19 +0000 Subject: [PATCH] set envirornment variable as PRODUCTION if the stage type is DEFAULT --- deploy-agent/deployd/common/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-agent/deployd/common/config.py b/deploy-agent/deployd/common/config.py index ae406cd6d0..0257463fa8 100644 --- a/deploy-agent/deployd/common/config.py +++ b/deploy-agent/deployd/common/config.py @@ -105,7 +105,7 @@ def update_variables(self, deploy_status): if deploy_status.report.stageName: self._environ['STAGE_NAME'] = deploy_status.report.stageName if deploy_status.report.stageType: - self._environ['COMPUTE_ENV_TYPE'] = deploy_status.report.stageType + self._environ['COMPUTE_ENV_TYPE'] = "PRODUCTION" if deploy_status.report.stageType == "DEFAULT" else deploy_status.report.stageType if deploy_status.first_deploy: self._environ['FIRST_DEPLOY'] = str(deploy_status.first_deploy) if deploy_status.is_docker: