From f06a5f1e72224e74822cbc7ca5589aaa46c22db5 Mon Sep 17 00:00:00 2001 From: Assaf Giladi Date: Tue, 10 Sep 2024 15:00:20 +0300 Subject: [PATCH] fix: update smb cluster name limits --- modules/protocol_gateways/variables.tf | 2 +- variables.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/protocol_gateways/variables.tf b/modules/protocol_gateways/variables.tf index bb3ff907..4153274f 100644 --- a/modules/protocol_gateways/variables.tf +++ b/modules/protocol_gateways/variables.tf @@ -154,7 +154,7 @@ variable "smb_cluster_name" { validation { condition = length(var.smb_cluster_name) > 0 && length(var.smb_cluster_name) <= 15 - error_message = "The SMB cluster name should be less than 15 characters long." + error_message = "The SMB cluster name must be between 1 and 15 characters long." } } diff --git a/variables.tf b/variables.tf index 1d961ded..ec5a4ca7 100644 --- a/variables.tf +++ b/variables.tf @@ -720,8 +720,8 @@ variable "smb_cluster_name" { default = "Weka-SMB" validation { - condition = length(var.smb_cluster_name) > 0 - error_message = "The SMB cluster name cannot be empty." + condition = length(var.smb_cluster_name) > 0 && length(var.smb_cluster_name) <= 15 + error_message = "The SMB cluster name must be between 1 and 15 characters long." } }