fix variable validation in project module to allow for null values
This commit is contained in:
parent
7bd31ccf52
commit
8dc131550f
|
@ -84,7 +84,7 @@ variable "parent" {
|
|||
type = string
|
||||
default = null
|
||||
validation {
|
||||
condition = can(regex("(organizations|folders)/[0-9]+", var.parent))
|
||||
condition = var.parent == null || can(regex("(organizations|folders)/[0-9]+", var.parent))
|
||||
error_message = "Parent must be of the form folders/folder_id or organizations/organization_id."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue