diff --git a/cmd/config_import.go b/cmd/config_import.go index 4f03c0d3..3463c2f8 100644 --- a/cmd/config_import.go +++ b/cmd/config_import.go @@ -51,9 +51,10 @@ database.`, checkErr(err) var rawAuther interface{} - rawAuther = file.Auther if filepath.Ext(args[0]) != ".json" { rawAuther = cleanUpInterfaceMap(file.Auther.(map[interface{}]interface{})) + } else { + rawAuther = file.Auther } var auther auth.Auther