Skip to content

Commit d56d301

Browse files
committed
add pagination
1 parent 36f4aaf commit d56d301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

import/import_script.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ func addDeploymentsToGeneratedFile(deploymentImportString string, organizationId
773773
// generateDeploymentHCL generates the HCL for all deployments in the organization
774774
// generateTerraformConfig has trouble with deployments, so we generate the HCL manually
775775
func generateDeploymentHCL(ctx context.Context, platformClient *platform.ClientWithResponses, organizationId string) (string, error) {
776-
deploymentsResp, err := platformClient.ListDeploymentsWithResponse(ctx, organizationId, nil)
776+
deploymentsResp, err := platformClient.ListDeploymentsWithResponse(ctx, organizationId, &platform.ListDeploymentsParams{Limit: lo.ToPtr(1000)})
777777
if err != nil {
778778
return "", fmt.Errorf("failed to list deployments: %v", err)
779779
}

0 commit comments

Comments
 (0)