8000 deploy_cfn_template deletes stacks in reverse order of creation · localstack/localstack@eb38bd8 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb38bd8

Browse files
committed
deploy_cfn_template deletes stacks in reverse order of creation
1 parent 825bb32 commit eb38bd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localstack/testing/pytest/fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,8 @@ def _destroy_stack():
10481048

10491049
yield _deploy
10501050

1051-
for entry in state:
1051+
# delete the stacks in the reverse order they were created in case of inter-stack dependencies
1052+
for entry in state[::-1]:
10521053
entry_stack_id = entry.get("stack_id")
10531054
try:
10541055
if entry_stack_id:

0 commit comments

Comments
 (0)
0