Skip to content

Commit

Permalink
remove redundant =
Browse files Browse the repository at this point in the history
update

update
  • Loading branch information
Hangyu Xu committed Nov 29, 2024
1 parent b76cf30 commit 2cf8ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ variable "name" {
description = "The name of the HCI cluster. Must be the same as the name when preparing AD."

validation {
condition = var.cluster_name != "" || (length(var.name) <= 16 && length(var.name) > 0)
condition = var.cluster_name != "" || (length(var.name) < 16 && length(var.name) > 0)
error_message = "If 'cluster_name' is empty, 'name' must be between 1 and 16 characters."
}
validation {
Expand Down Expand Up @@ -169,7 +169,7 @@ variable "cluster_name" {
description = "The name of the HCI cluster."

validation {
condition = length(var.cluster_name) < 16
condition = length(var.cluster_name) < 16 && length(var.cluster_name) >= 0
error_message = "The value of 'cluster_name' must be less than 16 characters"
}
}
Expand Down

0 comments on commit 2cf8ea1

Please sign in to comment.