Skip to content

Commit

Permalink
add expected keys to config dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Dec 26, 2024
1 parent 1228a8b commit ab8c97f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions h5pyd/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def __init__(self, config_file=None, **kwargs):
else:
Config._cfg[k] = v

# add standard keys if not already picked up
for k in ("hs_endpoint", "hs_username", "hs_password", "hs_api_key"):
if k not in Config._cfg:
Config._cfg[k] = ""

# override any config values with environment variable if found
for k in Config._cfg.keys():
if k.upper() in os.environ:
Expand Down

0 comments on commit ab8c97f

Please sign in to comment.