From 6d194c6a18754c6b8d825d0bf3d347db97be56d2 Mon Sep 17 00:00:00 2001 From: Future Outlier Date: Mon, 1 Jan 2024 13:43:33 +0800 Subject: [PATCH] test Signed-off-by: Future Outlier --- flytekit/core/context_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flytekit/core/context_manager.py b/flytekit/core/context_manager.py index d30eba0918..5b9143fb52 100644 --- a/flytekit/core/context_manager.py +++ b/flytekit/core/context_manager.py @@ -365,7 +365,7 @@ def get( fpath = self.get_secrets_file(group, key, group_version) v = os.environ.get(env_var) if v is not None: - return v + return v.strip() if os.path.exists(fpath): with open(fpath, encode_mode) as f: return f.read().strip()