Represent all GCS Bucket locations as uppercase.

This commit is contained in:
Riley Karson 2017-06-13 14:51:04 -07:00
parent 33ae780cc5
commit 1b14b27468

View File

@ -11,6 +11,7 @@ import (
"google.golang.org/api/googleapi"
"google.golang.org/api/storage/v1"
"strings"
)
func resourceStorageBucket() *schema.Resource {
@ -41,6 +42,9 @@ func resourceStorageBucket() *schema.Resource {
Default: "US",
Optional: true,
ForceNew: true,
StateFunc: func(l interface{}) string {
return strings.ToUpper(l.(string))
},
},
"predefined_acl": &schema.Schema{