Skip to content

Commit

Permalink
set envirornment variable as PRODUCTION if the stage type is DEFAULT
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaqin1 committed Dec 13, 2023
1 parent dc7519c commit f3b697c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy-agent/deployd/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3b697c

Please sign in to comment.