From 2ab7243b55e70c49d021f422d28cfba881d709d5 Mon Sep 17 00:00:00 2001 From: Anton Osenenko Date: Tue, 13 Jul 2021 15:34:39 +0300 Subject: [PATCH] fix page length --- bitbucket/resource_deployment_variable.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bitbucket/resource_deployment_variable.go b/bitbucket/resource_deployment_variable.go index 7ee8e3e8..84ccafcd 100644 --- a/bitbucket/resource_deployment_variable.go +++ b/bitbucket/resource_deployment_variable.go @@ -4,12 +4,13 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "io/ioutil" "log" "net/url" "strings" "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) // DeploymentVariable structure for handling key info @@ -123,7 +124,7 @@ func resourceDeploymentVariableRead(d *schema.ResourceData, m interface{}) error repository, deployment := parseDeploymentId(d.Get("deployment").(string)) client := m.(*Client) - rvReq, _ := client.Get(fmt.Sprintf("2.0/repositories/%s/deployments_config/environments/%s/variables", + rvReq, _ := client.Get(fmt.Sprintf("2.0/repositories/%s/deployments_config/environments/%s/variables?pagelen=100", repository, deployment, ))