Send test notification fixed

This commit is contained in:
utkarshcmu
2016-11-08 11:22:03 -08:00
parent 5542b0ab9e
commit 610ea090dc
+1 -1
View File
@@ -55,7 +55,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
bodyJSON.Set("client_url", ruleUrl)
if evalContext.ImagePublicUrl != "" {
var contexts []interface{}
contexts := make([]interface{}, 1)
imageJSON := simplejson.New()
imageJSON.Set("type", "image")
imageJSON.Set("src", evalContext.ImagePublicUrl)