Merge "Avoid loading nested stack in CloudFormation Stack resource"

This commit is contained in:
Zuul 2018-04-02 04:35:49 +00:00 committed by Gerrit Code Review
commit eff2bda8eb
1 changed files with 3 additions and 2 deletions

View File

@ -93,10 +93,11 @@ class NestedStack(stack_resource.StackResource):
return attributes.select_from_attribute(attribute, path)
def get_reference_id(self):
if self.nested() is None:
identifier = self.nested_identifier()
if identifier is None:
return six.text_type(self.name)
return self.nested().identifier().arn()
return identifier.arn()
def handle_update(self, json_snippet, tmpl_diff, prop_diff):
# Nested stack template may be changed even if the prop_diff is empty.