Skip to content

Commit

Permalink
resolve environment variables in repo config (#1909)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Kemp <[email protected]>
  • Loading branch information
samuel100 authored Sep 25, 2021
1 parent dcae160 commit 0342aa4
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 0342aa4

Please sign in to comment.