delete heat resource if in state DELETE_COMPLETE

Change-Id: Ibaaf07000ea96c044fe1ba07ebfb4f00e1bb2ec6
This commit is contained in:
Eyal 2018-06-05 13:24:27 +03:00
parent 5e37cca8a0
commit 75e121f81b
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ class HeatStackDriver(DriverBase):
stacks_list = self._make_stacks_list(stacks)
stacks_with_resources = self._append_stacks_resources(stacks_list)
for s in stacks_with_resources:
if s['stack_status'].lower() in ['deleted', 'delete_in_progress']:
if s['stack_status'].lower() in ['delete_complete', 'deleted',
'delete_in_progress']:
s[DSProps.EVENT_TYPE] = GraphAction.DELETE_ENTITY
return self.make_pickleable(stacks_with_resources,
HEAT_STACK_DATASOURCE,