From 04334594dceb5d2d7fd867d8646159018280065b Mon Sep 17 00:00:00 2001 From: Sam Kemp Date: Sat, 25 Sep 2021 17:15:11 +0100 Subject: [PATCH] resolve environment variables in repo config Signed-off-by: Sam Kemp --- sdk/python/feast/repo_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/feast/repo_config.py b/sdk/python/feast/repo_config.py index 35becb5641..3274e3b9a6 100644 --- a/sdk/python/feast/repo_config.py +++ b/sdk/python/feast/repo_config.py @@ -1,3 +1,4 @@ +import os from pathlib import Path from typing import Any @@ -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