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

View File

@ -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()),
}