Skip to content

Commit

Permalink
Merge pull request #485 from ricoli/patch-1
Browse files Browse the repository at this point in the history
Clarify the error message for the validation of public IP domain name label
  • Loading branch information
tombuildsstuff authored Nov 2, 2017
2 parents f084b27 + 29cbb53 commit 89e3432
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 89e3432

Please sign in to comment.