Skip to content

Commit 23390d2

Browse files
CDI-456: remove deprecated urls check (#65)
Remove deprecated urls
1 parent 62daa00 commit 23390d2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

gcore/provider.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"net/http"
88
"net/url"
99
"os"
10-
"strings"
1110

1211
dnssdk "github.com/G-Core/gcore-dns-sdk-go"
1312
storageSDK "github.com/G-Core/gcore-storage-sdk-go"
@@ -245,17 +244,6 @@ func providerConfigure(_ context.Context, d *schema.ResourceData) (interface{},
245244

246245
clientID := d.Get("gcore_client_id").(string)
247246

248-
// Check API Endpoint url for deprecations
249-
if strings.Contains(apiEndpoint, "api.gcorelabs.com") || strings.Contains(apiEndpoint, "api.gcdn.co") {
250-
diags = append(diags,
251-
diag.Diagnostic{
252-
Severity: diag.Warning,
253-
Summary: fmt.Sprintf("API endpoint %s is deprecated", apiEndpoint),
254-
Detail: "Please find more information about addressing on https://api.gcore.com/",
255-
},
256-
)
257-
}
258-
259247
var err error
260248
var provider *gcorecloud.ProviderClient
261249
if permanentToken != "" {

0 commit comments

Comments
 (0)