From d865f6f2eb7fbf1693c90e39696d0403f24462b3 Mon Sep 17 00:00:00 2001 From: Bartek Plotka Date: Tue, 30 Apr 2019 22:46:13 +0100 Subject: [PATCH] opsgenie: Moved from deprecated, non documented teams to responders field. Teams config option will fail unmarshalling as it is deprecated. Fixes https://github.com/prometheus/alertmanager/issues/1818 Signed-off-by: Bartek Plotka # Conflicts: # notify/impl_test.go --- config/notifiers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/notifiers.go b/config/notifiers.go index 43381ddc5d..c82828d372 100644 --- a/config/notifiers.go +++ b/config/notifiers.go @@ -482,7 +482,7 @@ func (c *OpsGenieConfig) UnmarshalYAML(unmarshal func(interface{}) error) error for _, r := range c.Responders { if r.ID == "" && r.Username == "" && r.Name == "" { - return errors.Errorf("OpsGenieConfig responder %v has to have at least one of id, username or name specified") + return errors.Errorf("OpsGenieConfig responder %v has to have at least one of id, username or name specified", r) } r.Type = strings.ToLower(r.Type)