From c605aabc80ba884b0bc967f2bfbd81059102659d Mon Sep 17 00:00:00 2001 From: Kyle Kotowick Date: Tue, 10 Sep 2024 14:36:46 -0400 Subject: [PATCH] Test --- outputs.tf | 2 +- tests/delete-after.tf | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index 21c6b6c..5d3d7b4 100644 --- a/outputs.tf +++ b/outputs.tf @@ -78,7 +78,7 @@ output "complete" { data.external.delete_file, ] description = "Always `true`, but does not return until the file has been created and, if desired, deleted as well." - value = length(data.external.delete_file) > 0 ? (jsonencode(data.external.delete_file[0]) != "" ? true : false) : jsonencode(data.external.create_file_chunk) != "" ? true : false # TODO: switch to local val + value = length(data.external.delete_file) > 0 ? (jsonencode(data.external.delete_file[0]) != "" ? jsonencode(data.external.delete_file[0]) : jsonencode(data.external.delete_file[0])) : jsonencode(data.external.create_file_chunk) != "" ? true : false # TODO: switch to local val } output "num_chunks" { diff --git a/tests/delete-after.tf b/tests/delete-after.tf index 3586b26..9bf3cb4 100644 --- a/tests/delete-after.tf +++ b/tests/delete-after.tf @@ -20,7 +20,9 @@ module "check_delete_after_exists" { } resource "terraform_data" "bootstrap" { - input = module.delete_after.complete + input = { + module_complete = module.delete_after.complete + } } # module "check_delete_after_deleted" { # source = "../assertion"