From 5813a6bcf379e0f1cf5adc20c483742d9a6abca9 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Mon, 18 Sep 2017 22:12:58 +0200 Subject: [PATCH] Add missed env param. --- cdist/core/code.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdist/core/code.py b/cdist/core/code.py index c555a84e..65d095cf 100644 --- a/cdist/core/code.py +++ b/cdist/core/code.py @@ -161,7 +161,8 @@ class Code(object): stdout_path = os.path.join(cdist_object.stdout_path, 'code-' + which) with open(stderr_path, 'ba+') as stderr, \ open(stdout_path, 'ba+') as stdout: - return which_exec.run_script(script, stdout=stdout, stderr=stderr) + return which_exec.run_script(script, env=env, stdout=stdout, + stderr=stderr) def run_code_local(self, cdist_object): """Run the code-local script for the given cdist object."""