mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-22 21:02:08 -04:00
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.
11 lines
118 B
HCL
11 lines
118 B
HCL
variable "test" {
|
|
sensitive = true
|
|
default = "nope"
|
|
}
|
|
|
|
module "child" {
|
|
source = "./child"
|
|
|
|
test = var.test
|
|
}
|