Was checking for the status string of "ERROR" when "CREATE_FAILED"
should have been used. This bug caused the heat stack test to hang
instead of raising an exception.
Change-Id: I91e04d58bed083fd8b93ec908c766c0ddc4828de
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
STACK_COMPLETE_TIMEOUT = 1200
POLL_INTERVAL = 3
+STATUS_CREATE_FAILED = 'CREATE_FAILED'
STATUS_CREATE_COMPLETE = 'CREATE_COMPLETE'
STATUS_DELETE_COMPLETE = 'DELETE_COMPLETE'
'Cannot stack status for stack with ID - ' + self.__stack.id)
return False
- if status == 'ERROR':
+ if status == STATUS_CREATE_FAILED:
raise StackCreationError('Stack had an error during deployment')
logger.debug('Stack status is - ' + status)
return status == expected_status_code