v1 execution plan template processing was fixed
In v1 execution plans Scripts section must contain a list of base64-encoded files. But instead of a file content, the file path was encoded. Change-Id: Ibb45de6dd2895a308000d083e0603020502d3b0d Closes-Bug: #1657839
This commit is contained in:
parent
2975a7d9e7
commit
c657ffce4d
|
@ -224,8 +224,9 @@ class Agent(object):
|
||||||
scripts = []
|
scripts = []
|
||||||
for script in script_files:
|
for script in script_files:
|
||||||
script_path = os.path.join(scripts_folder, script)
|
script_path = os.path.join(scripts_folder, script)
|
||||||
script_path = base64.encode_as_text(script_path) + "\n"
|
scripts.append(base64.encode_as_text(
|
||||||
scripts.append(resources.string(script_path, binary=True))
|
resources.string(script_path, binary=True),
|
||||||
|
encoding='latin1'))
|
||||||
template['Scripts'] = scripts
|
template['Scripts'] = scripts
|
||||||
return template
|
return template
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue