diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3bdb969..2afca9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: Build run: go build -v ./... diff --git a/gcore/provider.go b/gcore/provider.go index d0f0b82..daf08b2 100644 --- a/gcore/provider.go +++ b/gcore/provider.go @@ -276,6 +276,7 @@ func providerConfigure(_ context.Context, d *schema.ResourceData) (interface{}, ClientID: clientID, }) } + provider.SetDebug(os.Getenv("TF_LOG") == "DEBUG") if err != nil { provider = &gcorecloud.ProviderClient{} log.Printf("[ERROR] init auth client: %s\n", err) diff --git a/gcore/resource_gcore_lbpool.go b/gcore/resource_gcore_lbpool.go index b281a3a..fc4b0f0 100644 --- a/gcore/resource_gcore_lbpool.go +++ b/gcore/resource_gcore_lbpool.go @@ -187,7 +187,6 @@ func resourceLBPool() *schema.Resource { "session_persistence": &schema.Schema{ Type: schema.TypeList, Optional: true, - Computed: true, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ diff --git a/go.mod b/go.mod index d933d34..d586327 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/G-Core/gcore-dns-sdk-go v0.2.7-0.20230801110428-99ef24b50d4d github.com/G-Core/gcore-storage-sdk-go v0.1.34 github.com/G-Core/gcorelabscdn-go v0.1.32 - github.com/G-Core/gcorelabscloud-go v0.6.0 + github.com/G-Core/gcorelabscloud-go v0.6.2 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/terraform-plugin-sdk/v2 v2.27.0 github.com/mitchellh/mapstructure v1.5.0 diff --git a/go.sum b/go.sum index 6d9fc4d..4f17c64 100644 --- a/go.sum +++ b/go.sum @@ -7,10 +7,9 @@ github.com/G-Core/gcore-storage-sdk-go v0.1.34 h1:0GPQfz1kA6mQi6fiisGsh0Um4H9PZe github.com/G-Core/gcore-storage-sdk-go v0.1.34/go.mod h1:BUAEZZZJJt/+luRFunqziv3+JnbVMLbQXDWz9kV8Te8= github.com/G-Core/gcorelabscdn-go v0.1.32 h1:VGSmNdoW3lZm5lNf5lPpcO4lSdJYZIltxWkwfxlfodA= github.com/G-Core/gcorelabscdn-go v0.1.32/go.mod h1:iSGXaTvZBzDHQW+rKFS918BgFVpONcyLEijwh8WsXpE= -github.com/G-Core/gcorelabscloud-go v0.5.51 h1:wnw7dRlcpmUa0PXZeTdfS5ziJZZphezI/f2QzfU8XnU= -github.com/G-Core/gcorelabscloud-go v0.5.51/go.mod h1:tizV2NaASUpPI6NfJVIOM5yBI8MOriAzSHA/5K1m6aU= -github.com/G-Core/gcorelabscloud-go v0.6.0 h1:k8IuadGayUa/PxEv9qoVIYpjsGcEqiZ9FWrl/E7tdh0= github.com/G-Core/gcorelabscloud-go v0.6.0/go.mod h1:13Z1USxlxPbDFuYQyWqfNexlk4kUvOYTXbnvV/Z1lZo= +github.com/G-Core/gcorelabscloud-go v0.6.2 h1:oCo3yurVnGKZLkRuQ7GVQK1LuLFEjq3mFWiX/PUI69M= +github.com/G-Core/gcorelabscloud-go v0.6.2/go.mod h1:13Z1USxlxPbDFuYQyWqfNexlk4kUvOYTXbnvV/Z1lZo= github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA= github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/ProtonMail/go-crypto v0.0.0-20230626094100-7e9e0395ebec h1:vV3RryLxt42+ZIVOFbYJCH1jsZNTNmj2NYru5zfx+4E=