Skip to content

Commit

Permalink
[chore] bump MongoDB Atlas deps (open-telemetry#14693)
Browse files Browse the repository at this point in the history
* [chore] bump MongoDB Atlas deps

* return response.CheckResponse directly

Co-authored-by: Bogdan Drutu <lazy@splunk.com>

Co-authored-by: Bogdan Drutu <lazy@splunk.com>
  • Loading branch information
zenmoto and Bogdan Drutu authored Oct 3, 2022
1 parent 3347115 commit a8827f6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ require (
go.etcd.io/etcd/api/v3 v3.5.4 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect
go.etcd.io/etcd/client/v3 v3.5.4 // indirect
go.mongodb.org/atlas v0.16.0 // indirect
go.mongodb.org/atlas v0.17.0 // indirect
go.mongodb.org/mongo-driver v1.10.2 // indirect
go.opencensus.io v0.23.0 // indirect
go.opentelemetry.io/collector/pdata v0.61.0 // indirect
Expand Down
5 changes: 2 additions & 3 deletions cmd/configschema/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ require (
go.etcd.io/etcd/api/v3 v3.5.4 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect
go.etcd.io/etcd/client/v3 v3.5.4 // indirect
go.mongodb.org/atlas v0.16.0 // indirect
go.mongodb.org/atlas v0.17.0 // indirect
go.mongodb.org/mongo-driver v1.10.2 // indirect
go.opencensus.io v0.23.0 // indirect
go.opentelemetry.io/collector/pdata v0.61.0 // indirect
Expand Down
5 changes: 2 additions & 3 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion receiver/mongodbatlasreceiver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.18
require (
github.com/cenkalti/backoff/v4 v4.1.3
github.com/mongodb-forks/digest v1.0.4
go.mongodb.org/atlas v0.16.0
go.mongodb.org/atlas v0.17.0
go.opentelemetry.io/collector v0.61.0
go.uber.org/zap v1.23.0
)
Expand Down
5 changes: 2 additions & 3 deletions receiver/mongodbatlasreceiver/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func checkMongoDBClientErr(err error, response *mongodbatlas.Response) error {
return err
}
if response != nil {
return mongodbatlas.CheckResponse(response.Response)
return response.CheckResponse(response.Body)
}
return nil
}
Expand Down Expand Up @@ -267,7 +267,9 @@ func (s *MongoDBAtlasClient) getProjectsPage(
projects, response, err := s.client.Organizations.Projects(
ctx,
orgID,
&mongodbatlas.ListOptions{PageNum: pageNum},
&mongodbatlas.ProjectsListOptions{
ListOptions: mongodbatlas.ListOptions{PageNum: pageNum},
},
)
err = checkMongoDBClientErr(err, response)
if err != nil {
Expand Down

0 comments on commit a8827f6

Please sign in to comment.