Add missed env param.

This commit is contained in:
Darko Poljak 2017-09-18 22:12:58 +02:00 committed by Darko Poljak
parent 7a3c6f2024
commit 5813a6bcf3

View file

@ -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."""