From 0342aa4be4882d738ac69beb3a52564ca5cdb09e Mon Sep 17 00:00:00 2001 From: Samuel Kemp Date: Sat, 25 Sep 2021 17:51:05 +0100 Subject: [PATCH] resolve environment variables in repo config (#1909) 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