File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ func (p *vault) isConfigured() bool {
102102}
103103
104104func (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 }
You can’t perform that action at this time.
0 commit comments