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 37a4d7b commit fd1a988
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 @@ -110,7 +110,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 database configuration params from the environment
user: str = os.environ.get(f'{db_name}_DB_USERNAME')
Expand Down

0 comments on commit fd1a988

Please sign in to comment.