From 50e253e211e5c6ee522655fa025562bbc4ce6acd Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Thu, 11 Nov 2021 16:31:50 -0800 Subject: [PATCH] Fix config path for lassoctl --- cmd/lassoctl/cmd/root.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") }