Skip to content

Commit 1fd483a

Browse files
committed
CMR-10388: Converting environment name to lower case
1 parent fa07d0f commit 1fd483a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subscription/src/access_control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AccessControl:
1111
ACCESS_CONTROL_URL=http://localhost:3011/access-control
1212
1313
For AWS:
14-
ENVIRONMENT_NAME=SIT
14+
ENVIRONMENT_NAME=sit
1515
CMR_ACCESS_CONTROL_PROTOCOL=https
1616
CMR_ACCESS_CONTROL_PORT=3011
1717
CMR_ACCESS_CONTROL_HOST=cmr.sit.earthdata.nasa.gov
@@ -50,7 +50,7 @@ def get_url_from_parameter_store(self):
5050
raise ValueError("ENVIRONMENT_NAME environment variable is not set")
5151

5252
# construct the access control parameter names from the environment variable
53-
pre_fix = f"/{environment_name}/ingest/"
53+
pre_fix = f"/{environment_name.lower()}/ingest/"
5454
protocol_param_name = f"{pre_fix}CMR_ACCESS_CONTROL_PROTOCOL"
5555
port_param_name = f"{pre_fix}CMR_ACCESS_CONTROL_PORT"
5656
host_param_name = f"{pre_fix}CMR_ACCESS_CONTROL_HOST"

0 commit comments

Comments
 (0)