Skip to content

Commit

Permalink
Fixes error where auth is not being passed in.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-silvas committed Sep 1, 2023
1 parent c549026 commit b31104a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.0
v0.2.1
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tools/kea/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b31104a

Please sign in to comment.