Skip to content

Commit

Permalink
fix: fix off by one validator condition (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao Zhang authored Apr 17, 2024
1 parent 81ce337 commit 8a2b7d4
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 @@ -35,7 +35,7 @@ variable "suffix" {
default = ""

validation {
condition = length(var.suffix) == 0 || length(var.suffix) > 4
condition = length(var.suffix) == 0 || length(var.suffix) >= 4
error_message = "If the suffix value is set then it must be at least 4 characters long."
}
}
Expand Down

0 comments on commit 8a2b7d4

Please sign in to comment.