From: Angus Salkeld Date: Thu, 20 Jun 2013 06:56:04 +0000 (+1000) Subject: Fix one of the last stack.state's -> status X-Git-Tag: 2014.1~454 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a864766d78d9b78c10aad6a8537884ec0dcbc886;p=openstack-build%2Fheat-build.git Fix one of the last stack.state's -> status Change-Id: I3a246c472371ef6ca4c34f358ebecfe79b9eaa88 Signed-off-by: Angus Salkeld --- diff --git a/heat/engine/service.py b/heat/engine/service.py index 853bf155..adc06309 100644 --- a/heat/engine/service.py +++ b/heat/engine/service.py @@ -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)