Skip to content

Commit

Permalink
Merge pull request #2797 from cloudflare/dependabot/go_modules/github…
Browse files Browse the repository at this point in the history
….com/cloudflare/cloudflare-go-0.78.0

build(deps): bump github.com/cloudflare/cloudflare-go from 0.77.0 to 0.78.0
  • Loading branch information
jacobbednarz authored Oct 1, 2023
2 parents a1f7332 + ec2c641 commit b75a384
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changelog/2797.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:dependency
provider: bumps github.com/cloudflare/cloudflare-go from 0.77.0 to 0.78.0
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/agext/levenshtein v1.2.3 // indirect
github.com/cloudflare/cloudflare-go v0.77.0
github.com/cloudflare/cloudflare-go v0.78.0
github.com/fatih/color v1.13.0 // indirect
github.com/google/uuid v1.3.1
github.com/hashicorp/errwrap v1.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZ
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
github.com/cloudflare/cloudflare-go v0.77.0 h1:bVUGkSKdXEz8+u2Yj3ASqZsqlcsPkeB+PDqVs9OE7TY=
github.com/cloudflare/cloudflare-go v0.77.0/go.mod h1:R+Q/Im0G0MzKJxj3eXOBBE8xpnchVA9tSiQwOEvfW4Y=
github.com/cloudflare/cloudflare-go v0.78.0 h1:xMPdjJ+e2tGNUkw5LyduPlsMCaILEoN1Kqq/uEMx78w=
github.com/cloudflare/cloudflare-go v0.78.0/go.mod h1:R+Q/Im0G0MzKJxj3eXOBBE8xpnchVA9tSiQwOEvfW4Y=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
2 changes: 1 addition & 1 deletion internal/sdkv2provider/data_source_account_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func dataSourceCloudflareAccountRolesRead(ctx context.Context, d *schema.Resourc
accountID := d.Get(consts.AccountIDSchemaKey).(string)

tflog.Debug(ctx, fmt.Sprintf("Reading Account Roles"))
roles, err := client.AccountRoles(ctx, accountID)
roles, err := client.ListAccountRoles(ctx, cloudflare.AccountIdentifier(accountID), cloudflare.ListAccountRolesParams{})
if err != nil {
return diag.FromErr(fmt.Errorf("error listing Account Roles: %w", err))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func resourceCloudflareAccountMemberUpdate(ctx context.Context, d *schema.Resour
accountID := d.Get(consts.AccountIDSchemaKey).(string)

for _, r := range memberRoles {
accountRole, _ := client.AccountRole(ctx, accountID, r.(string))
accountRole, _ := client.GetAccountRole(ctx, cloudflare.AccountIdentifier(accountID), r.(string))
accountRoles = append(accountRoles, accountRole)
}

Expand Down

0 comments on commit b75a384

Please sign in to comment.