The AddSecureRemoteProvider function didn't add secretKeyring to the remoteProvider struct.

This commit is contained in:
chalupaul 2015-05-27 15:50:32 -05:00 committed by Kiril Zvezdarov
parent 12f7ec6566
commit ca00a9b4f7

View file

@ -286,6 +286,7 @@ func (v *Viper) AddRemoteProvider(provider, endpoint, path string) error {
endpoint: endpoint,
provider: provider,
path: path,
secretKeyring: secretkeyring,
}
if !v.providerPathExists(rp) {
v.remoteProviders = append(v.remoteProviders, rp)