Skip to content

Commit

Permalink
fix parsing keycloak config and error printing
Browse files Browse the repository at this point in the history
  • Loading branch information
kerberizer committed Jun 24, 2024
1 parent 5e5b864 commit 2f46ae7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion h5pyd/_apps/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"help": "storage Bucket to use (S3 Bucket, Azure Container, or top-level directory)",
"choices": ["BUCKET",]
},
"hs_keycloak_client_id": {},
"hs_keycloak_realm": {},
"hs_keycloak_uri": {},

"loglevel": {
"default": "error",
Expand Down Expand Up @@ -128,7 +131,7 @@ def __init__(self, config_file=None, custom_entries=[], **kwargs):
k = fields[0].strip()
v = fields[1].strip()
if k not in self._names:
raise ValueError(f"undefined option: {name}")
raise ValueError(f"undefined option: {k}")
if k in self._choices:
choices = self._choices[k]
if len(choices) > 1 and v not in self._choices:
Expand Down

0 comments on commit 2f46ae7

Please sign in to comment.