mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
Fix failing test on storage_object_acl.
The `predefined_acl` test for `storage_object_acl` was failing. This is because we removed the state-setting portion of the `predefined_acl` field from `storage_bucket_acl`, and due to what I can only assume is a copy/paste error, `storage_object_acl` was calling the Read function of `storage_bucket_acl` instead of its own when using `predefined_acl`. Updating to use `storage_object_acl`'s Read function makes the tests pass.
This commit is contained in:
parent
b694d5a325
commit
6b1b727449
@ -84,7 +84,7 @@ func resourceStorageObjectAclCreate(d *schema.ResourceData, meta interface{}) er
|
|||||||
return fmt.Errorf("Error updating object %s: %v", bucket, err)
|
return fmt.Errorf("Error updating object %s: %v", bucket, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return resourceStorageBucketAclRead(d, meta)
|
return resourceStorageObjectAclRead(d, meta)
|
||||||
} else if len(role_entity) > 0 {
|
} else if len(role_entity) > 0 {
|
||||||
for _, v := range role_entity {
|
for _, v := range role_entity {
|
||||||
pair, err := getRoleEntityPair(v.(string))
|
pair, err := getRoleEntityPair(v.(string))
|
||||||
|
Loading…
Reference in New Issue
Block a user