From b90991e00b4e0029748c28c5258607f266f1bf85 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Mon, 20 Feb 2017 15:12:49 -0500 Subject: Pass on outputs errors to parent stacks If getting an output from a child stack fails with an error, we didn't pass on the error message to the parent stack that was requesting it but instead reported essentially that the given output did not exist. Change-Id: I5653baf310a29dc4829ad570c769cf67ce12695e Partial-Bug: #1599114 --- heat/tests/test_provider_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'heat/tests/test_provider_template.py') diff --git a/heat/tests/test_provider_template.py b/heat/tests/test_provider_template.py index 6df378a27..5e17bd563 100644 --- a/heat/tests/test_provider_template.py +++ b/heat/tests/test_provider_template.py @@ -319,7 +319,7 @@ class ProviderTemplateTest(common.HeatTestCase): output = {'outputs': [{'output_key': 'Foo', 'output_value': None, 'output_error': 'it is all bad'}]} temp_res._rpc_client.show_stack.return_value = [output] - self.assertRaises(exception.InvalidTemplateAttribute, + self.assertRaises(exception.TemplateOutputError, temp_res.FnGetAtt, 'Foo') def test_properties_normal(self): -- cgit v1.2.1