Skip to content

Commit

Permalink
azurerm_storage_container: fix error message and docs (#10731)
Browse files Browse the repository at this point in the history
`metadata` keys should all be lowercase

Fixes #10723
  • Loading branch information
favoretti authored Feb 25, 2021
1 parent f1880a2 commit d8b3345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azurerm/internal/services/storage/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func ValidateMetaDataKeys(value interface{}, _ string) (warnings []string, error
// must begin with a letter, underscore
// the rest: letters, digits and underscores
if !regexp.MustCompile(`^([a-z_]{1}[a-z0-9_]{1,})$`).MatchString(k) {
errors = append(errors, fmt.Errorf("MetaData must start with letters or an underscores. Got %q.", k))
errors = append(errors, fmt.Errorf("MetaData must start with letters or an underscores and be all lowercase. Got %q.", k))
}
}

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/storage_container.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The following arguments are supported:

* `container_access_type` - (Optional) The Access Level configured for this Container. Possible values are `blob`, `container` or `private`. Defaults to `private`.

* `metadata` - (Optional) A mapping of MetaData for this Container.
* `metadata` - (Optional) A mapping of MetaData for this Container. All metadata keys should be lowercase.

## Attributes Reference

Expand Down

0 comments on commit d8b3345

Please sign in to comment.