From 401c14748a20789b70de17c2983a195dd7cfdafd Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 23 Jun 2023 20:25:58 -0700 Subject: [PATCH] Type-check configured environment variables --- intake/source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intake/source.py b/intake/source.py index 99b2a1d..1f74c42 100755 --- a/intake/source.py +++ b/intake/source.py @@ -233,9 +233,10 @@ def _execute_source_action( raise InvalidConfigException(f"No exe for action {action}") command = [action_cfg["exe"], *action_cfg.get("args", [])] + config_env = {key: str(value) for key, value in config.get("env", {}).items()} env = { **os.environ.copy(), - **config.get("env", {}), + **config_env, "STATE_PATH": str(source.get_state_path()), }