mirror of https://github.com/hashicorp/terraform
Merge pull request #27412 from hashicorp/alisdair/fix-variable-validation-sensitive-value
core: Fix sensitive value variable validationpull/27424/head
commit
f96c193060
@ -0,0 +1,8 @@
|
||||
variable "test" {
|
||||
type = string
|
||||
|
||||
validation {
|
||||
condition = var.test != "nope"
|
||||
error_message = "Value must not be \"nope\"."
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
variable "test" {
|
||||
sensitive = true
|
||||
default = "nope"
|
||||
}
|
||||
|
||||
module "child" {
|
||||
source = "./child"
|
||||
|
||||
test = var.test
|
||||
}
|
||||
Loading…
Reference in new issue