Skip to content

Commit

Permalink
Try using cloudinit_config again
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed Sep 10, 2024
1 parent 53995ba commit 608d97d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assertion/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ output "condition" {
value = var.condition
}

data "null_data_source" "test" {
inputs = {
condition = var.condition
data "cloudinit_config" "check" {
part {
content = var.condition
}
}

output "checked" {
description = "Whether the condition has passed validation (used for assertion dependencies)."
value = md5(jsonencode(data.null_data_source.test.outputs)) != md5("") ? true : false
value = data.cloudinit_config.check.rendered == "" ? true : true
}

0 comments on commit 608d97d

Please sign in to comment.