mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-28 17:10:42 +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["instructionsForEndUser"]:
|
||||
try:
|
||||
instructions = cls.render_jinja_template(extensions["instructionsForEndUser"], task)
|
||||
extensions["instructionsForEndUser"] = instructions
|
||||
return instructions
|
||||
return cls.render_jinja_template(extensions["instructionsForEndUser"], task)
|
||||
except TaskModelError as wfe:
|
||||
wfe.add_note("Failed to render instructions for end user.")
|
||||
raise ApiError.from_workflow_exception("instructions_error", str(wfe), exp=wfe) from wfe
|
||||
|
Loading…
x
Reference in New Issue
Block a user