From 549793cb83f840cff755550e011c8c1c653f41e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Mon, 16 Jan 2023 00:48:11 +0100 Subject: [PATCH] config: Load all label settings Until now only the first occurrence of a label type was loaded. Fixes: https://todo.xenrox.net/~xenrox/ntfy-alertmanager/10 --- config.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config.go b/config.go index 1ce5e00..3a8883d 100644 --- a/config.go +++ b/config.go @@ -85,9 +85,7 @@ func readConfig(path string) (*config, error) { labels := make(map[string]labelConfig) for _, labelName := range config.labels.Order { - labelDir := labelsDir.Children.Get(labelName) - - if labelDir != nil { + for _, labelDir := range labelsDir.Children.GetAll(labelName) { labelConfig := new(labelConfig) var name string