Skip to content

Commit

Permalink
Clarify the error message the public IP domain name label
Browse files Browse the repository at this point in the history
As per the regex, only lowercase characters are allowed.
  • Loading branch information
ricoli authored Nov 2, 2017
1 parent f084b27 commit 29cbb53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_public_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 29cbb53

Please sign in to comment.