Skip to content

Commit

Permalink
Fix OpsGenie Tags field
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Fawcett committed Nov 15, 2017
1 parent 10ed603 commit 2393b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ type opsGenieCreateMessage struct {
Details map[string]string `json:"details"`
Source string `json:"source"`
Teams string `json:"teams,omitempty"`
Tags string `json:"tags,omitempty"`
Tags []string `json:"tags,omitempty"`
Note string `json:"note,omitempty"`
Priority string `json:"priority,omitempty"`
}
Expand Down Expand Up @@ -842,7 +842,7 @@ func (n *OpsGenie) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
Details: details,
Source: tmpl(n.conf.Source),
Teams: tmpl(n.conf.Teams),
Tags: tmpl(n.conf.Tags),
Tags: strings.Split(string(tmpl(n.conf.Tags)), ","),
Note: tmpl(n.conf.Note),
Priority: tmpl(n.conf.Priority),
}
Expand Down

0 comments on commit 2393b89

Please sign in to comment.