From 1d1378d1ad08026e8871bf64a19a5a14c728834d Mon Sep 17 00:00:00 2001 From: Amgad Ashraf <35847451+amgadramses@users.noreply.github.com> Date: Sun, 19 Dec 2021 15:14:37 +0200 Subject: [PATCH] :toolbox: update config name (#14) * fix: update config name * fix: remove redundant statements --- util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/util.go b/util/util.go index 9e6bdee6..5e2ae2bd 100644 --- a/util/util.go +++ b/util/util.go @@ -96,7 +96,7 @@ func getPodEvents(c kubernetes.Interface, name, namespace string) (*v1.EventList func GetProviders() []provider.Provider { var providers []provider.Provider - for key, value := range viper.Get("providers").(map[string]interface{}) { + for key, value := range viper.Get("alert").(map[string]interface{}) { for c, v := range value.(map[string]interface{}) { if key == "slack" && c == "webhook" && len(strings.TrimSpace(v.(string))) > 0 { providers = append(providers, provider.NewSlack(viper.GetString("alert.slack.webhook")))