Merge "v1 execution plan template processing was fixed"

This commit is contained in:
Jenkins 2017-01-30 14:25:31 +00:00 committed by Gerrit Code Review
commit caf52b7cec
1 changed files with 3 additions and 2 deletions

View File

@ -224,8 +224,9 @@ class Agent(object):
scripts = []
for script in script_files:
script_path = os.path.join(scripts_folder, script)
script_path = base64.encode_as_text(script_path) + "\n"
scripts.append(resources.string(script_path, binary=True))
scripts.append(base64.encode_as_text(
resources.string(script_path, binary=True),
encoding='latin1'))
template['Scripts'] = scripts
return template