mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
fix replace_env_vars bug
This commit is contained in:
parent
12cbed1617
commit
3b4b2ea30c
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ def replace_env_vars(config: Any, path: str = "") -> Any:
|
||||||
if default_val is None:
|
if default_val is None:
|
||||||
raise EnvVarError(env_var, path)
|
raise EnvVarError(env_var, path)
|
||||||
else:
|
else:
|
||||||
value = default_val if default_val != "null" else None
|
value = default_val
|
||||||
|
|
||||||
# expand "~" from the values
|
# expand "~" from the values
|
||||||
return os.path.expanduser(value)
|
return os.path.expanduser(value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue