Skip to content

Commit

Permalink
fix: Fix condition of var ip_version validation (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrTitov authored Sep 18, 2023
1 parent aa77773 commit 40338ea
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 @@ -30,7 +30,7 @@ variable "ip_version" {
type = string
default = "4"
validation {
condition = var.ip_version == "4" && var.ip_version == "6"
condition = var.ip_version == "4" || var.ip_version == "6"
error_message = "There are two versions of IP that currently coexist in the global Internet: 4(IPv4) and 6(IPv6)"
}
}
Expand Down

0 comments on commit 40338ea

Please sign in to comment.