Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed Sep 10, 2024
1 parent b036c8f commit c605aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
4 changes: 3 additions & 1 deletion tests/delete-after.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c605aab

Please sign in to comment.