Skip to content

Commit

Permalink
opsgenie: Moved from deprecated, non documented teams to responders f…
Browse files Browse the repository at this point in the history
…ield.

Teams config option will fail unmarshalling as it is deprecated.

Fixes #1818

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

# Conflicts:
#	notify/impl_test.go
  • Loading branch information
bwplotka committed Apr 30, 2019
1 parent 90fe1c8 commit d865f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/notifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d865f6f

Please sign in to comment.