mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
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:
@@ -41,4 +41,4 @@
|
||||
- assert:
|
||||
that:
|
||||
- stacks is defined
|
||||
- stacks['stacks']|length == 0
|
||||
- (stacks['stacks']|length == 0) or (stacks['stacks'][0]['status'] == 'DELETE_COMPLETE')
|
||||
|
||||
Reference in New Issue
Block a user