Skip to content

Commit

Permalink
fix: domain_aliases validation incorrectly failed
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpage authored Oct 3, 2023
1 parent 990c20b commit b142c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ variable "domain_aliases" {
validation {
condition = length([
for domain in var.domain_aliases :
domain if can(length(regex("^([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$", domain)) == 0)
domain if can(length(regex("^([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$", domain)) > 0)
]) == 0
error_message = "The list of domain names must contain only valid domain names."
}
Expand Down

0 comments on commit b142c73

Please sign in to comment.