Skip to content

Commit

Permalink
Try with null data provider
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed Sep 10, 2024
1 parent ea02b0e commit 6a0d93b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assertion/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ output "condition" {
value = var.condition
}

data "null_data_source" "condition" {
inputs = {
condition = var.condition
}
}
output "checked" {
description = "Whether the condition has passed validation (used for assertion dependencies)."
value = jsonencode(var.condition) != "true"
value = data.null_data_source.condition.outputs == {} ? true : true
}

0 comments on commit 6a0d93b

Please sign in to comment.