Files
opentf/terraform/testdata/validate-variable-custom-validations-child-sensitive/validate-variable-custom-validations.tf
Alisdair McDiarmid 1fa65bdd91 core: Fix sensitive value variable validation
Binding a sensitive value to a variable with custom validation rules
would cause a panic, as the validation expression carries the sensitive
mark when it is evaluated for truthiness. This commit drops the marks
before testing, which fixes the issue.
2021-01-05 13:52:33 -05:00

11 lines
118 B
HCL

variable "test" {
sensitive = true
default = "nope"
}
module "child" {
source = "./child"
test = var.test
}