From b31104a3c97bfbae43ef02a83673873e49297005 Mon Sep 17 00:00:00 2001 From: Josh Silvas Date: Thu, 31 Aug 2023 21:16:38 -0500 Subject: [PATCH] Fixes error where auth is not being passed in. --- VERSION | 2 +- internal/provider/provider.go | 2 +- tools/kea/options.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 81fd7ba0..eac0a144 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.2.0 \ No newline at end of file +v0.2.1 \ No newline at end of file diff --git a/internal/provider/provider.go b/internal/provider/provider.go index ceaaa94e..70ed3990 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -109,7 +109,7 @@ func (p *KeaCBProvider) Configure(ctx context.Context, req provider.ConfigureReq } // Create the Kea DHCP API client. - client := kea.New() + client := kea.New(kea.WithAuth(username, password)) // Make the Kea DHCP client available during DataSource and Resource // type Configure methods. diff --git a/tools/kea/options.go b/tools/kea/options.go index 5e771fe4..9084a34a 100644 --- a/tools/kea/options.go +++ b/tools/kea/options.go @@ -104,7 +104,7 @@ func (c *Client) processOptions(opts ...Option) { } } if c.auth.username == "" || c.auth.password == "" { - logrus.Fatalf("Missing auth! Use versa.WithAuth() or environment vars %s/%s", envKEAUSER, envKEAPASS) + logrus.Fatalf("Missing auth! Use kea.WithAuth() or environment vars %s/%s", envKEAUSER, envKEAPASS) } c.log = func() *logrus.Logger {