Fix assertion after stack deletion

After a stack has been removed with module stack, a call to module
stack_info might still return this stack with its status set to
'DELETE_COMPLETE' and its status_reason defined as 'Stack DELETE
completed successfully'.

Change-Id: Ice843c403669b4a4e1b12ec73db1fb00d1405980
This commit is contained in:
Jakob Meng 2022-03-14 10:54:08 +01:00
parent 879270aa47
commit 61e20bb945

View File

@ -41,4 +41,4 @@
- assert:
that:
- stacks is defined
- stacks['stacks']|length == 0
- (stacks['stacks']|length == 0) or (stacks['stacks'][0]['status'] == 'DELETE_COMPLETE')