Skip to content

Commit d6e9e60

Browse files
committed
Rename function
1 parent c5a2473 commit d6e9e60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/credsprovider/credsprovider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func registerCredsSource(nf newCredsSourceFunc) {
5151
sources[nf().Type()] = nf
5252
}
5353

54-
func setConfig[CONFIG any](cfg map[string]any, config *CONFIG) error {
54+
func parseConfig[CONFIG any](cfg map[string]any, config *CONFIG) error {
5555
err := mapstructure.Decode(cfg, &config)
5656
if err != nil {
5757
return fmt.Errorf("invalid configuration: %w", err)

internal/credsprovider/vault.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (p *vault) isConfigured() bool {
102102
}
103103

104104
func (p *vault) SetCredsConfig(ctx context.Context, cfg map[string]any) error {
105-
err := setConfig(cfg, &p.credsCfg)
105+
err := parseConfig(cfg, &p.credsCfg)
106106
if err != nil {
107107
return err
108108
}

0 commit comments

Comments
 (0)