Skip to content

Commit

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

data "cloudinit_config" "check" {
part {
content = var.condition
}
}
# data "cloudinit_config" "check" {
# part {
# content = var.condition
# }
# }

output "checked" {
description = "Whether the condition has passed validation (used for assertion dependencies)."
value = data.cloudinit_config.check.rendered == "" ? true : true
# value = data.cloudinit_config.check.rendered == "" ? true : true
value = var.condition == true ? true : true
}

0 comments on commit b99424c

Please sign in to comment.