mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-03-01 01:20:45 +00:00
do not overwrite the instructionsForEndUser on the spec object with the rendered instructions w/ burnettk (#1135)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
parent
87fd3ddf65
commit
0565e63e98
@ -48,9 +48,7 @@ class JinjaService:
|
|||||||
if extensions and "instructionsForEndUser" in extensions:
|
if extensions and "instructionsForEndUser" in extensions:
|
||||||
if extensions["instructionsForEndUser"]:
|
if extensions["instructionsForEndUser"]:
|
||||||
try:
|
try:
|
||||||
instructions = cls.render_jinja_template(extensions["instructionsForEndUser"], task)
|
return cls.render_jinja_template(extensions["instructionsForEndUser"], task)
|
||||||
extensions["instructionsForEndUser"] = instructions
|
|
||||||
return instructions
|
|
||||||
except TaskModelError as wfe:
|
except TaskModelError as wfe:
|
||||||
wfe.add_note("Failed to render instructions for end user.")
|
wfe.add_note("Failed to render instructions for end user.")
|
||||||
raise ApiError.from_workflow_exception("instructions_error", str(wfe), exp=wfe) from wfe
|
raise ApiError.from_workflow_exception("instructions_error", str(wfe), exp=wfe) from wfe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user