Skip to content

Commit

Permalink
Fixed build error with travis. #1336
Browse files Browse the repository at this point in the history
  • Loading branch information
shanepoint committed Jun 6, 2018
1 parent 8ef5131 commit a4956d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 and up to 60 characters in length", k))
}

return
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_app_service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func validateAppServicePlanName(v interface{}, k string) (ws []string, es []erro
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, dashes and underscores up to 60 characters", k))
es = append(es, fmt.Errorf("%q may only contain alphanumeric characters, dashes and underscores up to 60 characters in length", k))
}

return
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_app_service_plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestAzureRMAppServicePlanName_validation(t *testing.T) {
},
{
Value: "hello_world",
ErrCount: 1,
ErrCount: 0,
},
{
Value: "helloworld21!",
Expand Down

0 comments on commit a4956d5

Please sign in to comment.