From 03154ba7111e5f9bb484d1a0b49a90ee7f6b8006 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Wed, 21 Nov 2018 11:18:15 +0100 Subject: [PATCH] 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 --- heat/engine/resources/openstack/mistral/external_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/resources/openstack/mistral/external_resource.py b/heat/engine/resources/openstack/mistral/external_resource.py index 58142c5816..9e8f1b70e3 100644 --- a/heat/engine/resources/openstack/mistral/external_resource.py +++ b/heat/engine/resources/openstack/mistral/external_resource.py @@ -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)