mirror of https://github.com/spf13/viper.git
cleanup formatting to pass tests
This commit is contained in:
parent
146fa552dd
commit
bd2a8eace3
|
@ -82,7 +82,7 @@ func getConfigManager(rp viper.RemoteProvider) (crypt.ConfigManager, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
switch(rp.Provider()) {
|
||||
switch rp.Provider() {
|
||||
case "etcd":
|
||||
cm, err = crypt.NewEtcdConfigManager([]string{rp.Endpoint()}, kr)
|
||||
case "consul":
|
||||
|
@ -91,7 +91,7 @@ func getConfigManager(rp viper.RemoteProvider) (crypt.ConfigManager, error) {
|
|||
cm, err = NewVaultConfigManager([]string{rp.Endpoint()}, kr)
|
||||
}
|
||||
} else {
|
||||
switch(rp.Provider()) {
|
||||
switch rp.Provider() {
|
||||
case "etcd":
|
||||
cm, err = crypt.NewStandardEtcdConfigManager([]string{rp.Endpoint()})
|
||||
case "consul":
|
||||
|
|
|
@ -7,9 +7,9 @@ package remote
|
|||
// vault, we can make vault work this way.
|
||||
|
||||
import (
|
||||
"io"
|
||||
crypt "github.com/xordataexchange/crypt/config"
|
||||
vault "github.com/spf13/viper/vault"
|
||||
crypt "github.com/xordataexchange/crypt/config"
|
||||
"io"
|
||||
)
|
||||
|
||||
func NewStandardVaultConfigManager(machines []string) (crypt.ConfigManager, error) {
|
||||
|
|
Loading…
Reference in New Issue