mirror of
https://github.com/spf13/viper
synced 2025-05-06 12:17:18 +00:00
Merge eb33902d94
into 670c42a85b
This commit is contained in:
commit
8d8ee51758
1 changed files with 1 additions and 3 deletions
4
viper.go
4
viper.go
|
@ -1107,16 +1107,14 @@ func (v *Viper) getKeyValueConfig() error {
|
|||
if RemoteConfig == nil {
|
||||
return RemoteConfigError("Enable the remote features by doing a blank import of the viper/remote package: '_ github.com/spf13/viper/remote'")
|
||||
}
|
||||
|
||||
for _, rp := range v.remoteProviders {
|
||||
val, err := v.getRemoteConfig(rp)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
v.kvstore = val
|
||||
return nil
|
||||
}
|
||||
return RemoteConfigError("No Files Found")
|
||||
return nil
|
||||
}
|
||||
|
||||
func (v *Viper) getRemoteConfig(provider RemoteProvider) (map[string]interface{}, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue