From 37957eab201ee0aa8aabd3ba6725ba52f63cac05 Mon Sep 17 00:00:00 2001 From: smutel Date: Fri, 12 Mar 2021 18:23:20 +0100 Subject: [PATCH] fix: Make basepath really optional --- netbox/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/provider.go b/netbox/provider.go index 97c809fba..2d83b8358 100644 --- a/netbox/provider.go +++ b/netbox/provider.go @@ -24,7 +24,7 @@ func Provider() *schema.Provider { }, "basepath": { Type: schema.TypeString, - Required: false, + Optional: true, DefaultFunc: schema.EnvDefaultFunc("NETBOX_BASEPATH", client.DefaultBasePath), Description: "URL path to the netbox API.", },