Skip to content

Commit

Permalink
resolve environment variables in repo config
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Kemp <samkemp@microsoft.com>
  • Loading branch information
samuel100 committed Sep 25, 2021
1 parent dcae160 commit 0433459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/python/feast/repo_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path
from typing import Any

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

with open(config_path) as f:
raw_config = yaml.safe_load(f)
raw_config = yaml.safe_load(os.path.expandvars(f.read()))
try:
c = RepoConfig(**raw_config)
c.repo_path = repo_path
Expand Down

0 comments on commit 0433459

Please sign in to comment.