Return execution state_info in ExternalResource

When a workflow execution fails, we don't return anything information to
the user. Let's propage what mistral sends us in the resource failure.

Change-Id: Ib412346f12450fa5e6a1291d635debe1a4add380
Story: #2004396
Task: #28025
This commit is contained in:
Thomas Herve 2018-11-21 11:18:15 +01:00
parent 443864b35e
commit 03154ba711
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class MistralExternalResource(resource.Resource):
if execution.state in ('ERROR', 'CANCELLED'):
raise exception.ResourceFailure(
exception_or_error=execution.state,
exception_or_error=execution.state_info,
resource=self,
action=action)