delete_wait() has typos that cause it not to wait

* The delete_wait() method was referencing stack.satck_status
       which caused exceptions and the code doesn't wait for the
       stack-delete to finish.

     * Corrected the references to stack.stack_status so the code
       will now wait for the stack-delete to finish before proceeding

Change-Id: I81ff150a0b84801121117ad51eb110537a28d77e
Closes-Bug: 1473132
This commit is contained in:
Bob HADDLETON 2015-07-09 20:39:50 -05:00
parent c57103ffa6
commit 938ceff95d
1 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ class DeviceHeat(abstract_driver.DeviceAbstractDriver):
heatclient_ = HeatClient(context)
stack = heatclient_.get(device_id)
status = stack.satck_status
status = stack.stack_status
stack_retries = STACK_RETRIES
while (status == 'DELETE_IN_PROGRESS' and stack_retries > 0):
time.sleep(STACK_RETRY_WAIT)
@ -339,7 +339,7 @@ class DeviceHeat(abstract_driver.DeviceAbstractDriver):
"while waiting for the stack %(stack)s to be "
"deleted"), {'stack': device_id})
break
status = stack.satck_status
status = stack.stack_status
stack_retries = stack_retries - 1
if stack_retries == 0: