Skip to content

Commit e72ea35

Browse files
SarahFrenchgontech
authored andcommitted
Fix how conditions are handled in google_bigtable_instance_iam_* resources (GoogleCloudPlatform#11890)
1 parent ab0af69 commit e72ea35

File tree

3 files changed

+296
-57
lines changed

3 files changed

+296
-57
lines changed

mmv1/third_party/terraform/services/bigtable/iam_bigtable_instance.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ func BigtableInstanceIdParseFunc(d *schema.ResourceData, config *transport_tpg.C
7171
}
7272

7373
func (u *BigtableInstanceIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.Policy, error) {
74-
req := &bigtableadmin.GetIamPolicyRequest{}
75-
74+
req := &bigtableadmin.GetIamPolicyRequest{
75+
Options: &bigtableadmin.GetPolicyOptions{
76+
RequestedPolicyVersion: tpgiamresource.IamPolicyVersion,
77+
},
78+
}
7679
userAgent, err := tpgresource.GenerateUserAgentString(u.d, u.Config.UserAgent)
7780
if err != nil {
7881
return nil, err

0 commit comments

Comments
 (0)