From 2e105b589bc1e6ae9c23b94ab97a7a50fc2bf3b1 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarenko Date: Thu, 11 Feb 2021 03:30:50 +0100 Subject: [PATCH] azurerm_public_ip: Clarify error message (#10533) Fixes #10285 --- azurerm/internal/services/network/validate/public_ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/network/validate/public_ip.go b/azurerm/internal/services/network/validate/public_ip.go index 83bcfa0cb5d9..f03908e51300 100644 --- a/azurerm/internal/services/network/validate/public_ip.go +++ b/azurerm/internal/services/network/validate/public_ip.go @@ -8,7 +8,7 @@ import ( func PublicIpDomainNameLabel(v interface{}, k string) (warnings []string, errors []error) { value := v.(string) if !regexp.MustCompile(`^[a-z][a-z0-9-]{1,61}[a-z0-9]$`).MatchString(value) { - errors = append(errors, fmt.Errorf("%s must contain only lowercase alphanumeric characters, numbers and hyphens. It must start with a letter and end only with a number or letter", k)) + errors = append(errors, fmt.Errorf("%s must contain only lowercase alphanumeric characters, numbers and hyphens. It must start with a letter, end only with a number or letter and not exceed 63 characters in length", k)) } return warnings, errors }