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"