Skip to content

Commit 0342aa4

Browse files
authored
resolve environment variables in repo config (#1909)
Signed-off-by: Sam Kemp <samkemp@microsoft.com>
1 parent dcae160 commit 0342aa4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sdk/python/feast/repo_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from pathlib import Path
23
from typing import Any
34

@@ -345,7 +346,7 @@ def load_repo_config(repo_path: Path) -> RepoConfig:
345346
config_path = repo_path / "feature_store.yaml"
346347

347348
with open(config_path) as f:
348-
raw_config = yaml.safe_load(f)
349+
raw_config = yaml.safe_load(os.path.expandvars(f.read()))
349350
try:
350351
c = RepoConfig(**raw_config)
351352
c.repo_path = repo_path

0 commit comments

Comments
 (0)