Skip to content

Commit

Permalink
Merge pull request #217 from hotosm/enhance/config-file-remote-variables
Browse files Browse the repository at this point in the history
Fix KeyError DB connect param
  • Loading branch information
kshitijrajsharma authored Feb 22, 2024
2 parents e7301b7 + 6f6bc1e commit 20b686e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ def get_db_connection_params() -> dict:

connection_params = json.loads(db_credentials)

connection_params["username"] = connection_params["user"]
for k in ("dbinstanceidentifier", "engine", "user"):
connection_params["user"] = connection_params["username"]
for k in ("dbinstanceidentifier", "engine", "username"):
connection_params.pop(k, None)

if None in connection_params.values():
Expand Down

0 comments on commit 20b686e

Please sign in to comment.