Skip to content

Commit

Permalink
Rename stage type env var
Browse files Browse the repository at this point in the history
The Teletraan stage type is now exposed as an environment variable to
the host.

Rename the env var to match the expected name.
  • Loading branch information
osoriano committed Nov 22, 2023
1 parent b9989fe commit 7a284fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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_STAGE_TYPE'] = deploy_status.report.stageType
self._environ['COMPUTE_ENV_TYPE'] = 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
2 changes: 1 addition & 1 deletion deploy-agent/tests/unit/deploy/common/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_get_target(self):
self.assertEqual(os.environ['DEPLOY_ID'], '123')
self.assertEqual(os.environ['ENV_NAME'], 'pinboard')
self.assertEqual(os.environ['STAGE_NAME'], 'beta')
self.assertEqual(os.environ['COMPUTE_STAGE_TYPE'], 'DEFAULT')
self.assertEqual(os.environ['COMPUTE_ENV_TYPE'], 'DEFAULT')
self.assertEqual(self.config.get_target(), '/tmp/pinboard')


Expand Down
2 changes: 1 addition & 1 deletion deploy-sentinel/teletraan/POST_RESTART
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo $PORT
# Built in Environment Variables
echo $ENV_NAME
echo $STAGE_NAME
echo $COMPUTE_STAGE_TYPE
echo $COMPUTE_ENV_TYPE
echo $DEPLOY_ID
echo $DEPLOY_STEP
echo $OPCODE
Expand Down

0 comments on commit 7a284fe

Please sign in to comment.