]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix one of the last stack.state's -> status
authorAngus Salkeld <asalkeld@redhat.com>
Thu, 20 Jun 2013 06:56:04 +0000 (16:56 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Thu, 20 Jun 2013 06:56:04 +0000 (16:56 +1000)
Change-Id: I3a246c472371ef6ca4c34f358ebecfe79b9eaa88
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/engine/service.py

index 853bf15503e953cf3cf174caaa5168434e9b5c31..adc06309b327a07a481c7556d692f820f62e82f1 100644 (file)
@@ -203,12 +203,12 @@ class EngineService(service.Service):
         def _stack_create(stack):
             # Create the stack, and create the periodic task if successful
             stack.create()
-            if stack.state == stack.CREATE_COMPLETE:
+            if stack.action == stack.CREATE and stack.status == stack.COMPLETE:
                 # Schedule a periodic watcher task for this stack
                 self._timer_in_thread(stack.id, self._periodic_watcher_task,
                                       sid=stack.id)
             else:
-                logger.warning("Stack create failed, state %s" % stack.state)
+                logger.warning("Stack create failed, status %s" % stack.status)
 
         if db_api.stack_get_by_name(cnxt, stack_name):
             raise exception.StackExists(stack_name=stack_name)