summaryrefslogtreecommitdiffstats
path: root/config/configLoader.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/configLoader.go')
-rw-r--r--config/configLoader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/configLoader.go b/config/configLoader.go
index b60aa3fe5..31e3e00e4 100644
--- a/config/configLoader.go
+++ b/config/configLoader.go
@@ -57,7 +57,7 @@ func FromFileToMap(fs afero.Fs, filename string) (map[string]interface{}, error)
}
func readConfig(format metadecoders.Format, data []byte) (map[string]interface{}, error) {
- m, err := metadecoders.UnmarshalToMap(data, format)
+ m, err := metadecoders.Default.UnmarshalToMap(data, format)
if err != nil {
return nil, err
}
@@ -69,7 +69,7 @@ func readConfig(format metadecoders.Format, data []byte) (map[string]interface{}
}
func loadConfigFromFile(fs afero.Fs, filename string) (map[string]interface{}, error) {
- m, err := metadecoders.UnmarshalFileToMap(fs, filename)
+ m, err := metadecoders.Default.UnmarshalFileToMap(fs, filename)
if err != nil {
return nil, err
}