diff --git a/cmd/lassoctl/cmd/root.go b/cmd/lassoctl/cmd/root.go index bb2ba52..eb0554a 100644 --- a/cmd/lassoctl/cmd/root.go +++ b/cmd/lassoctl/cmd/root.go @@ -57,7 +57,8 @@ func initConfig() { // Use config file from the flag. viper.SetConfigFile(cfgFile) } else { - viper.SetConfigType("/etc") + viper.AddConfigPath("/etc") + viper.SetConfigType("toml") viper.SetConfigName("lassoctl") }