Skip to content

Commit

Permalink
GCLOUD2-11715: [gcore_lbpool] session_persistence cannot be deleted i… (
Browse files Browse the repository at this point in the history
#46)

* GCLOUD2-11715: [gcore_lbpool] session_persistence cannot be deleted in terraform
  • Loading branch information
ArtsiomAntropau authored Oct 26, 2023
1 parent caeac4d commit 15076a4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
1 change: 1 addition & 0 deletions gcore/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion gcore/resource_gcore_lbpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 15076a4

Please sign in to comment.