From 29cbb530ab3f3b95d6e646d4e4c0adc5465cdfc6 Mon Sep 17 00:00:00 2001 From: Ricardo Oliveira Date: Thu, 2 Nov 2017 16:46:55 +0000 Subject: [PATCH] Clarify the error message the public IP domain name label As per the regex, only lowercase characters are allowed. --- azurerm/resource_arm_public_ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_public_ip.go b/azurerm/resource_arm_public_ip.go index c7a01129f252..1be0ea19997f 100644 --- a/azurerm/resource_arm_public_ip.go +++ b/azurerm/resource_arm_public_ip.go @@ -225,7 +225,7 @@ func validatePublicIpDomainNameLabel(v interface{}, k string) (ws []string, erro value := v.(string) if !regexp.MustCompile(`^[a-z0-9-]+$`).MatchString(value) { errors = append(errors, fmt.Errorf( - "only alphanumeric characters and hyphens allowed in %q: %q", + "only lowercase alphanumeric characters and hyphens allowed in %q: %q", k, value)) }