summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Urdin <tobias.urdin@binero.se>2022-11-17 13:22:51 +0000
committerTobias Urdin <tobias.urdin@binero.com>2022-12-19 06:42:52 +0000
commit53fa8c37497e51d1c40b083790c2d40c71fee3ab (patch)
tree0b00137cfd04671ee32b46da36d4fe7a45c69d9b
parentb5caa1847cd6b96ea8f68dd52e67e00ba6602aca (diff)
downloadheat-53fa8c37497e51d1c40b083790c2d40c71fee3ab.tar.gz
Explicitly pass error kwarg in nested StackValidationFailed
This fixes the issue when a nested stack is serialized in oslo.messaging and deserialization fails because we pass a kwarg as an arg when we generate the exception remotely. Story: #2010115 Task: #45695 Change-Id: Id75398d2ed2d4fab467df51057c4167cd77bb32f
-rw-r--r--heat/engine/resources/stack_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/engine/resources/stack_resource.py b/heat/engine/resources/stack_resource.py
index 5b491888a..d7129dad0 100644
--- a/heat/engine/resources/stack_resource.py
+++ b/heat/engine/resources/stack_resource.py
@@ -78,7 +78,7 @@ class StackResource(resource.Resource):
except Exception as ex:
path = "%s<%s>" % (self.name, self.template_url)
raise exception.StackValidationFailed(
- ex, path=[self.stack.t.RESOURCES, path])
+ error=ex, path=[self.stack.t.RESOURCES, path])
@property
def template_url(self):