Skip to content

Commit

Permalink
Merge pull request #4233 from eddieramirez/update-resource-group-name…
Browse files Browse the repository at this point in the history
…-length

correct name length for azurerm_resource_group
  • Loading branch information
tombuildsstuff authored Sep 4, 2019
2 parents 420132f + 8ff7d9b commit e6d068c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azurerm/helpers/azure/resource_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func SchemaResourceGroupNameForDataSource() *schema.Schema {
func validateResourceGroupName(v interface{}, k string) (warnings []string, errors []error) {
value := v.(string)

if len(value) > 80 {
errors = append(errors, fmt.Errorf("%q may not exceed 80 characters in length", k))
if len(value) > 90 {
errors = append(errors, fmt.Errorf("%q may not exceed 90 characters in length", k))
}

if strings.HasSuffix(value, ".") {
Expand Down
4 changes: 2 additions & 2 deletions azurerm/helpers/azure/resource_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ func TestValidateResourceGroupName(t *testing.T) {
ErrCount: 1,
},
{
Value: acctest.RandString(80),
Value: acctest.RandString(90),
ErrCount: 0,
},
{
Value: acctest.RandString(81),
Value: acctest.RandString(91),
ErrCount: 1,
},
}
Expand Down

0 comments on commit e6d068c

Please sign in to comment.