Skip to content

Commit

Permalink
Merge pull request #104 from equinix-labs/example-nutanix-node-count
Browse files Browse the repository at this point in the history
fix: example nutanix_node_count must default to an odd number
  • Loading branch information
displague authored Aug 13, 2024
2 parents cf9efcd + 8e701c9 commit 0e6d9f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/cluster-migration/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ variable "create_project" {

variable "nutanix_node_count" {
type = number
default = 2
description = "The number of Nutanix nodes to create."
default = 1
description = "The number of Nutanix nodes to create. This must be an odd number."
validation {
condition = var.nutanix_node_count % 2 == 1
error_message = "The number of Nutanix nodes must be an odd number."
}
}
# tflint-ignore: terraform_unused_declarations
variable "create_vlan" {
Expand Down

0 comments on commit 0e6d9f6

Please sign in to comment.