Skip to content

Commit

Permalink
Fix azure table storage name length requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgpy3 committed Jul 3, 2017
1 parent c5def38 commit d01b8e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_storage_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func validateArmStorageTableName(v interface{}, k string) (ws []string, errors [
"Table Storage %q cannot use the word `table`: %q",
k, value))
}
if !regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]{6,63}$`).MatchString(value) {
if !regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]{3,63}$`).MatchString(value) {
errors = append(errors, fmt.Errorf(
"Table Storage %q cannot begin with a numeric character, only alphanumeric characters are allowed and must be between 6 and 63 characters long: %q",
"Table Storage %q cannot begin with a numeric character, only alphanumeric characters are allowed and must be between 3 and 63 characters long: %q",
k, value))
}

Expand Down

0 comments on commit d01b8e5

Please sign in to comment.