mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
AddSecureRemoteProvider adds the secret keyring to the default provider struct
This commit is contained in:
parent
8e930a9714
commit
db7ff930a1
1 changed files with 4 additions and 3 deletions
1
viper.go
1
viper.go
|
@ -318,6 +318,7 @@ func (v *Viper) AddSecureRemoteProvider(provider, endpoint, path, secretkeyring
|
|||
endpoint: endpoint,
|
||||
provider: provider,
|
||||
path: path,
|
||||
secretKeyring: secretkeyring,
|
||||
}
|
||||
if !v.providerPathExists(rp) {
|
||||
v.remoteProviders = append(v.remoteProviders, rp)
|
||||
|
|
Loading…
Reference in a new issue