Skip to content

Commit 848d8bf

Browse files
author
Rene Barbosa
committed
fix: var.protocols validation
1 parent b4cb636 commit 848d8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/resolver-endpoints/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ variable "protocols" {
1313
description = "The resolver endpoint protocols"
1414
validation {
1515
condition = alltrue([
16-
for value in var.protocols : contains(["DoH", "Do53", "DoH-FIPS"], var.protocols)
16+
for value in var.protocols : contains(["DoH", "Do53", "DoH-FIPS"], value)
1717
])
1818
error_message = "Invalid value. Valid values are `DoH`, `Do53` and `DoH-FIPS`"
1919
}

0 commit comments

Comments
 (0)