From 39808d6465aadde769d08a5bbdfc6dba5961cf1a Mon Sep 17 00:00:00 2001 From: lipovmi Date: Tue, 12 Apr 2022 13:53:28 +0300 Subject: [PATCH] ~ fix default func for deprecated api urls as params --- gcore/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcore/provider.go b/gcore/provider.go index f731a4e..0aea028 100644 --- a/gcore/provider.go +++ b/gcore/provider.go @@ -72,7 +72,7 @@ func Provider() *schema.Provider { Type: schema.TypeString, Optional: true, Description: "Platform URL is used for generate JWT", - DefaultFunc: schema.EnvDefaultFunc("GCORE_PLATFORM_API", ""), + DefaultFunc: schema.EnvDefaultFunc("GCORE_PLATFORM_API", nil), }, "gcore_api": { Type: schema.TypeString, @@ -86,7 +86,7 @@ func Provider() *schema.Provider { Type: schema.TypeString, Optional: true, Description: "Region API", - DefaultFunc: schema.EnvDefaultFunc("GCORE_CLOUD_API", ""), + DefaultFunc: schema.EnvDefaultFunc("GCORE_CLOUD_API", nil), }, "gcore_cdn_api": { Type: schema.TypeString,