Skip to content

Commit

Permalink
Add update mask for audit config to resource manager IAM resources (#…
Browse files Browse the repository at this point in the history
…4084)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and emilymye committed Jul 23, 2019
1 parent 3765ae2 commit 300646b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion google/iam_folder.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ func (u *FolderIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Pol
}

_, err = u.Config.clientResourceManagerV2Beta1.Folders.SetIamPolicy(u.folderId, &resourceManagerV2Beta1.SetIamPolicyRequest{
Policy: v2BetaPolicy,
Policy: v2BetaPolicy,
UpdateMask: "bindings,etag,auditConfigs",
}).Do()

if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion google/iam_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func (u *OrganizationIamUpdater) GetResourceIamPolicy() (*cloudresourcemanager.P

func (u *OrganizationIamUpdater) SetResourceIamPolicy(policy *cloudresourcemanager.Policy) error {
_, err := u.Config.clientResourceManager.Organizations.SetIamPolicy("organizations/"+u.resourceId, &cloudresourcemanager.SetIamPolicyRequest{
Policy: policy,
Policy: policy,
UpdateMask: "bindings,etag,auditConfigs",
}).Do()

if err != nil {
Expand Down

0 comments on commit 300646b

Please sign in to comment.