From db7ff930a189b98d602179d9001d33345f42b8c7 Mon Sep 17 00:00:00 2001 From: Kiril Zvezdarov Date: Sun, 21 Jun 2015 19:19:00 -0400 Subject: [PATCH] AddSecureRemoteProvider adds the secret keyring to the default provider struct --- viper.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/viper.go b/viper.go index d95ca28..3db9cd2 100644 --- a/viper.go +++ b/viper.go @@ -315,9 +315,10 @@ func (v *Viper) AddSecureRemoteProvider(provider, endpoint, path, secretkeyring if provider != "" && endpoint != "" { jww.INFO.Printf("adding %s:%s to remote provider list", provider, endpoint) rp := &defaultRemoteProvider{ - endpoint: endpoint, - provider: provider, - path: path, + endpoint: endpoint, + provider: provider, + path: path, + secretKeyring: secretkeyring, } if !v.providerPathExists(rp) { v.remoteProviders = append(v.remoteProviders, rp)