From b31c38ed6a758fafa74f593a13256de50e27c329 Mon Sep 17 00:00:00 2001 From: Kyle Kotowick Date: Tue, 10 Sep 2024 13:30:00 -0400 Subject: [PATCH] Update delete-after.tf --- tests/delete-after.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/delete-after.tf b/tests/delete-after.tf index 8953467..b373423 100644 --- a/tests/delete-after.tf +++ b/tests/delete-after.tf @@ -6,10 +6,15 @@ module "delete_after" { delete_after = [ // This forces the delete to wait until the first check has occured //module.check_delete_after_exists.checked, - file(module.delete_after.created ? module.delete_after.filename : "") + locals.file_before ] } +locals { + file_before = file(module.delete_after.created ? module.delete_after.filename : "") + file_after = file(module.delete_after.complete ? module.delete_after.filename : "") +} + # module "check_delete_after_exists" { # source = "../assertion" # //version = "~>0.2.5"