From 77a916e1a8c4a35f2511ab95d31ed0302cad6e6d Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Tue, 29 Oct 2024 04:31:24 +0000 Subject: [PATCH] don't force env vars fixes #2048 --- api/tacticalrmm/checks/serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/tacticalrmm/checks/serializers.py b/api/tacticalrmm/checks/serializers.py index e56b3cc4..ea2c10eb 100644 --- a/api/tacticalrmm/checks/serializers.py +++ b/api/tacticalrmm/checks/serializers.py @@ -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: