If creation of a nested stack fails, we need to raise an exception so that
creation of the nested stack resource (and hence the enclosing stack) also
fails.
Change-Id: Ic5eda7f8d044ed2c87fc0e785b1cd8fcf78071a4
Signed-off-by: Zane Bitter <zbitter@redhat.com>
nested_id = self._nested.store(self.stack)
self.instance_id_set(nested_id)
self._nested.create()
+ if self._nested.state != self._nested.CREATE_COMPLETE:
+ raise exception.Error(self._nested.state_description)
def handle_create(self):
response = urllib2.urlopen(self.properties[PROP_TEMPLATE_URL])