]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
engine : stack_resource change state_description to status_reason
authorSteven Hardy <shardy@redhat.com>
Wed, 26 Jun 2013 11:27:05 +0000 (12:27 +0100)
committerSteven Hardy <shardy@redhat.com>
Wed, 26 Jun 2013 11:27:05 +0000 (12:27 +0100)
The internal API changed this name recently, but this got missed
due to lack of test coverage for this exception.  Turns out adding
that test coverage is really hard due to all the coroutine magic,
so we'll have to fix that at some later time.

Change-Id: I98a0c5bb8f3f001a7d215bcdf64cad841e42ef85

heat/engine/stack_resource.py

index cc4a44f5e7548e9d2d2b3c05468c96fab8d310a2..3bc6664eda811f132099306e5c296ee106a8ad46 100644 (file)
@@ -87,7 +87,7 @@ class StackResource(resource.Resource):
         if done:
             if self._nested.state != (self._nested.CREATE,
                                       self._nested.COMPLETE):
-                raise exception.Error(self._nested.state_description)
+                raise exception.Error(self._nested.status_reason)
 
         return done