Skip to content

Commit

Permalink
Merge pull request #2523 from TimeIncOSS/aws-fix-elb-validation
Browse files Browse the repository at this point in the history
aws: Fix validation for aws_elb.name
  • Loading branch information
radeksimko committed Jun 26, 2015
2 parents 5ad9ba0 + 60a7597 commit 594f04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/aws/resource_aws_elb.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func resourceAwsElb() *schema.Resource {
ForceNew: true,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
value := v.(string)
if !regexp.MustCompile(`^[0-9a-z-]$`).MatchString(value) {
if !regexp.MustCompile(`^[0-9a-z-]+$`).MatchString(value) {
errors = append(errors, fmt.Errorf(
"only lowercase alphanumeric characters and hyphens allowed in %q", k))
}
Expand Down

0 comments on commit 594f04e

Please sign in to comment.