Skip to content

Commit

Permalink
refactor: Update to latest go-mo-secrets
Browse files Browse the repository at this point in the history
Adjusted for renamed client and addition of `Type` in Secret Store configuration

closes #170

Signed-off-by: lenny <[email protected]>
  • Loading branch information
lenny committed Feb 18, 2021
1 parent 07dd28c commit e4bb43c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootstrap/handlers/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func SecureProviderBootstrapHandler(
var secretClient secrets.SecretClient

lc.Info("Attempting to create secret client")
secretClient, err = secrets.NewUserClient(ctx, secretConfig, lc, secureProvider.DefaultTokenExpiredCallback)
secretClient, err = secrets.NewSecretsClient(ctx, secretConfig, lc, secureProvider.DefaultTokenExpiredCallback)
if err == nil {
secureProvider.SetClient(secretClient)
provider = secureProvider
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ require (
github.com/stretchr/testify v1.7.0
)

replace (
github.com/edgexfoundry/go-mod-secrets/v2 => ../go-mod-secrets
)
replace github.com/edgexfoundry/go-mod-secrets/v2 => ../go-mod-secrets

go 1.15

0 comments on commit e4bb43c

Please sign in to comment.