Skip to content

Commit

Permalink
config server fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian-Nara committed Sep 8, 2024
1 parent b792d70 commit 1e2ab9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/aws/config-server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ def get_config():
secret_value = secret_file.read().strip()
secret_value_json = json.loads(secret_value)
secret_value_json["environment"] = secret_value_json["environment"].lower()
secret_value_json["core_base_url"] = secret_value_json["core_base_url"].lower()
secret_value_json["optout_base_url"] = secret_value_json["optout_base_url"].lower()
if secret_value_json["environment"] is not None:
secret_value_json["core_base_url"] = secret_value_json["core_base_url"].lower()
if secret_value_json["optout_base_url"] is not None:
secret_value_json["optout_base_url"] = secret_value_json["optout_base_url"].lower()
return json.dumps(secret_value_json)
except Exception as e:
return str(e), 500
Expand Down

0 comments on commit 1e2ab9e

Please sign in to comment.