Use appropriate exception in StackResource.get_output()
Don't raise InvalidTemplateAttribute in StackResource.get_output() when an
output does not exist - it's not the case that get_output() is only used
for fetching attributes. Instead, raise NotFound from get_output(), and
translate that to InvalidTemplateAttribute in the caller when we are
actually fetching an attribute.
Reviewed: https:/ /review. openstack. org/507250 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=2e4a6e237cf 226eb61cf905a72 cfb5eb3d5177f0
Committed: https:/
Submitter: Zuul
Branch: master
commit 2e4a6e237cf226e b61cf905a72cfb5 eb3d5177f0
Author: Zane Bitter <email address hidden>
Date: Tue Dec 19 16:36:43 2017 -0500
Use appropriate exception in StackResource. get_output( )
Don't raise InvalidTemplate Attribute in StackResource. get_output( ) when an Attribute in the caller when we are
output does not exist - it's not the case that get_output() is only used
for fetching attributes. Instead, raise NotFound from get_output(), and
translate that to InvalidTemplate
actually fetching an attribute.
Change-Id: I4f883e4b583a96 5785d0a595c8c33 b47dc94118c
Related-Bug: #1719333