diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c3e1143..998ce7ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.0.9 (November 20, 2020) + +* **New Data Source:** `netbox_interfaces` ([#9](https://github.com/e-breuninger/terraform-provider-netbox/pull/9) by [@jake2184](https://github.com/jake2184)) + +BUG FIXES + +* provider: Honor Sub-Paths in netbox URL ([#15](https://github.com/e-breuninger/terraform-provider-netbox/pull/15) by [@kasimon](https://github.com/kasimon)) + ## 0.0.8 (November 19, 2020) * **New Data Source:** `netbox_virtual_machines` ([#8](https://github.com/e-breuninger/terraform-provider-netbox/pull/8) by [@jake2184](https://github.com/jake2184)) diff --git a/netbox/client.go b/netbox/client.go index 8493eab5..2b07b737 100644 --- a/netbox/client.go +++ b/netbox/client.go @@ -44,7 +44,7 @@ func (cfg *Config) Client() (interface{}, error) { InsecureSkipVerify: cfg.AllowInsecureHttps, } client, _ := httptransport.TLSClient(clientOpts) - transport := httptransport.NewWithClient(parsedURL.Host, parsedURL.Path + netboxclient.DefaultBasePath, desiredRuntimeClientSchemes, client) + transport := httptransport.NewWithClient(parsedURL.Host, parsedURL.Path+netboxclient.DefaultBasePath, desiredRuntimeClientSchemes, client) transport.DefaultAuthentication = httptransport.APIKeyAuth("Authorization", "header", fmt.Sprintf("Token %v", cfg.APIToken)) transport.SetLogger(log.StandardLogger()) netboxClient := netboxclient.New(transport, nil)