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 291fc57 commit d592fc8
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 []map[string]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 @@ -846,7 +846,7 @@ func (n *OpsGenie) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
Details: details,
Source: tmpl(n.conf.Source),
Teams: 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 d592fc8

Please sign in to comment.