don't force env vars fixes #2048

This commit is contained in:
wh1te909 2024-10-29 04:31:24 +00:00
parent 7ba2a4b27b
commit 77a916e1a8
1 changed files with 1 additions and 2 deletions

View File

@ -177,8 +177,7 @@ class CheckRunnerGetSerializer(serializers.ModelSerializer):
return Script.parse_script_env_vars(
agent=agent,
shell=obj.script.shell,
env_vars=obj.env_vars
or obj.script.env_vars, # check's env_vars override the script's env vars
env_vars=obj.env_vars,
)
class Meta: