From d56d301c0b1b0437d49c8db4d1aa18088a04e26d Mon Sep 17 00:00:00 2001 From: Isaac Chung Date: Mon, 2 Dec 2024 14:49:16 -0800 Subject: [PATCH] add pagination --- import/import_script.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import/import_script.go b/import/import_script.go index a60e51ad..b856f23a 100644 --- a/import/import_script.go +++ b/import/import_script.go @@ -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) }