Skip to content

Commit

Permalink
add pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
ichung08 committed Dec 2, 2024
1 parent 36f4aaf commit d56d301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import/import_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ func addDeploymentsToGeneratedFile(deploymentImportString string, organizationId
// generateDeploymentHCL generates the HCL for all deployments in the organization
// generateTerraformConfig has trouble with deployments, so we generate the HCL manually
func generateDeploymentHCL(ctx context.Context, platformClient *platform.ClientWithResponses, organizationId string) (string, error) {
deploymentsResp, err := platformClient.ListDeploymentsWithResponse(ctx, organizationId, nil)
deploymentsResp, err := platformClient.ListDeploymentsWithResponse(ctx, organizationId, &platform.ListDeploymentsParams{Limit: lo.ToPtr(1000)})
if err != nil {
return "", fmt.Errorf("failed to list deployments: %v", err)
}
Expand Down

0 comments on commit d56d301

Please sign in to comment.