enable templating of hipchat room_id (#1463)

Signed-off-by: Mark Van De Weert <mark.vandeweert@wpengine.com>
This commit is contained in:
Mark Van De Weert 2018-07-19 11:35:53 -05:00 committed by Max Leonard Inden
parent 8397de1830
commit 080cbe4e23
No known key found for this signature in database
GPG Key ID: 5403C5464810BC26

View File

@ -759,7 +759,8 @@ func (n *Hipchat) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
data = n.tmpl.Data(receiverName(ctx, n.logger), groupLabels(ctx, n.logger), as...)
tmplText = tmplText(n.tmpl, data, &err)
tmplHTML = tmplHTML(n.tmpl, data, &err)
url = fmt.Sprintf("%sv2/room/%s/notification?auth_token=%s", n.conf.APIURL, n.conf.RoomID, n.conf.AuthToken)
roomid = tmplText(n.conf.RoomID)
url = fmt.Sprintf("%sv2/room/%s/notification?auth_token=%s", n.conf.APIURL, roomid, n.conf.AuthToken)
)
if n.conf.MessageFormat == "html" {