Skip to content

Commit

Permalink
[#11127] Fixes ability to add secret manager secrets IAM bindings wit…
Browse files Browse the repository at this point in the history
…h conditions (#10844) (hashicorp#7444)

[upstream:8d5eac137cb5ca51dc764d18d6c7038018b97222]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 31, 2024
1 parent 265c6c2 commit 8cc8354
Show file tree
Hide file tree
Showing 4 changed files with 641 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ func (u *SecretManagerSecretIamUpdater) GetResourceIamPolicy() (*cloudresourcema
return nil, err
}
var obj map[string]interface{}
url, err = transport_tpg.AddQueryParams(url, map[string]string{"options.requestedPolicyVersion": fmt.Sprintf("%d", tpgiamresource.IamPolicyVersion)})
if err != nil {
return nil, err
}

userAgent, err := tpgresource.GenerateUserAgentString(u.d, u.Config.UserAgent)
if err != nil {
Expand Down
Loading

0 comments on commit 8cc8354

Please sign in to comment.