Skip to content

Commit

Permalink
providers/aws: aws_elb: Allow all alnum plus hyphen in name attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoust authored and radeksimko committed Jul 1, 2015
1 parent 3d81d83 commit e1ce469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_elb.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ 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-Za-z-]+$`).MatchString(value) {
errors = append(errors, fmt.Errorf(
"only lowercase alphanumeric characters and hyphens allowed in %q", k))
"only alphanumeric characters and hyphens allowed in %q", k))
}
if len(value) > 32 {
errors = append(errors, fmt.Errorf(
Expand Down

0 comments on commit e1ce469

Please sign in to comment.