Skip to content

Commit

Permalink
Refine validation error message for netapp_size_in_tb variable
Browse files Browse the repository at this point in the history
Signed-off-by: David.Houck <[email protected]>
  • Loading branch information
dhoucgitter committed Dec 10, 2024
1 parent 845f58a commit f31ffda
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 @@ -500,8 +500,8 @@ variable "netapp_size_in_tb" {
default = 4

validation {
condition = var.netapp_size_in_tb != null ? var.netapp_size_in_tb >= 4 && var.netapp_size_in_tb <= 500 : null
error_message = "ERROR: netapp_size_in_tb - value must be between 4 and 500."
condition = var.netapp_size_in_tb != null ? var.netapp_network_features == "Basic" ? var.netapp_size_in_tb >= 4 && var.netapp_size_in_tb <= 500 : var.netapp_size_in_tb >= 1 && var.netapp_size_in_tb <= 500 : null
error_message = "ERROR: netapp_size_in_tb - For 'Basic' netapp_network_features, value must be between 4 and 500, for 'Standard' netapp_network_features, value must be between 1 and 500."
}
}

Expand Down

0 comments on commit f31ffda

Please sign in to comment.