]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Tolerate bad environment until validation
authorSteven Hardy <shardy@redhat.com>
Thu, 19 Sep 2013 21:31:16 +0000 (22:31 +0100)
committerSteven Hardy <shardy@redhat.com>
Fri, 20 Sep 2013 08:37:05 +0000 (09:37 +0100)
commitc6b1c61376de61445612370ae5eb8f97e2bcfc43
treeac0fc0449488df8c061d57e667fd1583aee0aa6f
parent6d01a0daa7171c01f09a2b57e6afccb4b7e6b3e0
Tolerate bad environment until validation

Currently if we get a bad environment for a template_resource,
it causes an exception in the resource constructor, which does cause
the stack create to fail, but also all subsequent operations too.

By tolerating the error in the constructor, we can catch it instead at
validation time.

Change-Id: Ia971d8f1c50ca6f265ec36ea564aeba1638de541
Closes-Bug: 1227816
heat/engine/resources/template_resource.py
heat/tests/test_provider_template.py