Allow template in victorops message_type field (#1038)

This commit is contained in:
Carlos Alexandro Becker 2017-10-11 10:42:10 -03:00 committed by stuart nelson
parent ff9e5270c7
commit 4a8e710691

View File

@ -859,7 +859,7 @@ func (n *VictorOps) Notify(ctx context.Context, as ...*types.Alert) (bool, error
data = n.tmpl.Data(receiverName(ctx), groupLabels(ctx), as...)
tmpl = tmplText(n.tmpl, data, &err)
apiURL = fmt.Sprintf("%s%s/%s", n.conf.APIURL, n.conf.APIKey, n.conf.RoutingKey)
messageType = n.conf.MessageType
messageType = tmpl(n.conf.MessageType)
stateMessage = tmpl(n.conf.StateMessage)
)