mirror of https://github.com/hashicorp/terraform
Merge pull request #35288 from hashicorp/jbardin/variable-validation-self
Variable validation rules must still reference the containing variable.TF-13952
commit
94cd43e496
@ -0,0 +1,10 @@
|
||||
locals {
|
||||
something = "else"
|
||||
}
|
||||
|
||||
variable "validation" {
|
||||
validation {
|
||||
condition = local.something == "else"
|
||||
error_message = "Something else."
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue