Skip to content

Commit

Permalink
Update resource_arm_app_service name validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte authored Jun 6, 2018
1 parent 8ef5131 commit 4d3189f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_app_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ func validateAppServiceName(v interface{}, k string) (ws []string, es []error) {
value := v.(string)

if matched := regexp.MustCompile(`^[0-9a-zA-Z-]{1,60}$`).Match([]byte(value)); !matched {
es = append(es, fmt.Errorf("%q may only contain alphanumeric characters and dashes and up to 60 characters", k))
es = append(es, fmt.Errorf("%q may only contain alphanumeric characters and dashes up to 60 characters in length", k))
}

return
Expand Down

0 comments on commit 4d3189f

Please sign in to comment.