Skip to content

Commit

Permalink
datasources pagination fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Sep 4, 2024
1 parent 86e0c87 commit cf0187a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/provider/org_deviceprofile_ap_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (d *orgDeviceprofilesApDataSource) Read(ctx context.Context, req datasource
"limit": limit,
"total": total,
})
data, err := d.client.OrgsDeviceProfiles().ListOrgDeviceProfiles(ctx, orgId, &mType, &page, &limit)
data, err := d.client.OrgsDeviceProfiles().ListOrgDeviceProfiles(ctx, orgId, &mType, &limit, &page)
if data.Response.StatusCode != 200 && err != nil {
resp.Diagnostics.AddError(
"Error getting AP Device Profiles",
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/org_deviceprofile_gateway_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (d *orgDeviceprofilesGatewayDataSource) Read(ctx context.Context, req datas
"limit": limit,
"total": total,
})
data, err := d.client.OrgsDeviceProfiles().ListOrgDeviceProfiles(ctx, orgId, &mType, &page, &limit)
data, err := d.client.OrgsDeviceProfiles().ListOrgDeviceProfiles(ctx, orgId, &mType, &limit, &page)
if data.Response.StatusCode != 200 && err != nil {
resp.Diagnostics.AddError(
"Error getting Org Gateway Device Profiles",
Expand Down

0 comments on commit cf0187a

Please sign in to comment.