Type-check configured environment variables

This commit is contained in:
Tim Van Baak 2023-06-23 20:25:58 -07:00
parent dd35946c9e
commit 401c14748a
1 changed files with 2 additions and 1 deletions

View File

@ -233,9 +233,10 @@ def _execute_source_action(
raise InvalidConfigException(f"No exe for action {action}") raise InvalidConfigException(f"No exe for action {action}")
command = [action_cfg["exe"], *action_cfg.get("args", [])] command = [action_cfg["exe"], *action_cfg.get("args", [])]
config_env = {key: str(value) for key, value in config.get("env", {}).items()}
env = { env = {
**os.environ.copy(), **os.environ.copy(),
**config.get("env", {}), **config_env,
"STATE_PATH": str(source.get_state_path()), "STATE_PATH": str(source.get_state_path()),
} }