Skip to content

Commit

Permalink
making sure that env params are formatted properly
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Oct 26, 2023
1 parent d71e9c7 commit 430406f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/pg_utils_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_conn_config(db_name: str) -> str:
:return:
"""
# insure the env parameter prefix is uppercase
db_name: str = db_name.upper()
db_name: str = db_name.upper().replace('-', '_')

# get configuration params from the env params
user: str = os.environ.get(f'{db_name}_DB_USERNAME')
Expand Down

0 comments on commit 430406f

Please sign in to comment.