Skip to content

Commit

Permalink
chore: update go-c8y lib
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Jun 15, 2024
1 parent 7846c4f commit 41d7a7a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/olekukonko/ts v0.0.0-20171002115256-78ecb04241c0
github.com/pkg/errors v0.9.1
github.com/pquerna/otp v1.4.0
github.com/reubenmiller/go-c8y v0.19.1
github.com/reubenmiller/go-c8y v0.20.1
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
github.com/sergi/go-diff v1.3.1 // indirect
github.com/sethvargo/go-password v0.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pquerna/otp v1.4.0 h1:wZvl1TIVxKRThZIBiwOOHOGP/1+nZyWBil9Y2XNEDzg=
github.com/pquerna/otp v1.4.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
github.com/reubenmiller/go-c8y v0.19.1 h1:qXxfO0wheWewziAuNZjPzetcDZKo2yTlSeb57oAdliE=
github.com/reubenmiller/go-c8y v0.19.1/go.mod h1:bNJLF+fokWDpztGiX5CsbEY5F8c3h9Wwu6c2uHdG0S8=
github.com/reubenmiller/go-c8y v0.20.1 h1:zBmqAMfbhlosy2iqPMghe3qytEOALtwLITpgNAkXKUw=
github.com/reubenmiller/go-c8y v0.20.1/go.mod h1:bNJLF+fokWDpztGiX5CsbEY5F8c3h9Wwu6c2uHdG0S8=
github.com/reubenmiller/gojsonq/v2 v2.0.0-20221119213524-0fd921ac20a3 h1:v8Q77ObTxkm0Wj9iAjcc0VMLxqEzKIdAnaTNPzSiw8Q=
github.com/reubenmiller/gojsonq/v2 v2.0.0-20221119213524-0fd921ac20a3/go.mod h1:QidmUT4ebNVwyjKXAQgx9VFHxpOxBKWs32EEXaXnEfE=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
2 changes: 2 additions & 0 deletions pkg/c8yfetcher/deviceCertificateFetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (f *DeviceCertificateFetcher) IsID(id string) bool {
func (f *DeviceCertificateFetcher) getByID(id string) ([]fetcherResultSet, error) {
cert, resp, err := f.Client().DeviceCertificate.GetCertificate(
c8y.WithDisabledDryRunContext(context.Background()),
f.Client().TenantName,
id,
)

Expand All @@ -59,6 +60,7 @@ func (f *DeviceCertificateFetcher) getByName(name string) ([]fetcherResultSet, e
// check if already resolved, so we can save a lookup
col, _, err := f.Client().DeviceCertificate.GetCertificates(
c8y.WithDisabledDryRunContext(context.Background()),
f.Client().TenantName,
&c8y.DeviceCertificateCollectionOptions{
PaginationOptions: *c8y.NewPaginationOptions(100),
},
Expand Down
1 change: 1 addition & 0 deletions pkg/completion/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func WithDeviceCertificate(flagName string, clientFunc func() (*c8y.Client, erro
}
items, _, err := client.DeviceCertificate.GetCertificates(
c8y.WithDisabledDryRunContext(context.Background()),
client.TenantName,
&c8y.DeviceCertificateCollectionOptions{
PaginationOptions: *c8y.NewPaginationOptions(100),
},
Expand Down

0 comments on commit 41d7a7a

Please sign in to comment.