From 01719272b51482aad146e35430b094794ca226d2 Mon Sep 17 00:00:00 2001 From: smutel Date: Tue, 9 Jun 2020 14:42:00 +0200 Subject: [PATCH] fix: Fix issue when using http as scheme --- netbox/provider.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/provider.go b/netbox/provider.go index 3097f9864..71bbbcfff 100644 --- a/netbox/provider.go +++ b/netbox/provider.go @@ -31,8 +31,7 @@ func Provider() *schema.Provider { "scheme": { Type: schema.TypeString, Optional: true, - Default: "https", - DefaultFunc: schema.EnvDefaultFunc("NETBOX_SCHEME", ""), + DefaultFunc: schema.EnvDefaultFunc("NETBOX_SCHEME", "https"), Description: "Sheme used to reach netbox application.", }, },