Skip to content

Commit 610ea09

Browse files
committed
Send test notification fixed
1 parent 5542b0a commit 610ea09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/services/alerting/notifiers/pagerduty.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
5555
bodyJSON.Set("client_url", ruleUrl)
5656

5757
if evalContext.ImagePublicUrl != "" {
58-
var contexts []interface{}
58+
contexts := make([]interface{}, 1)
5959
imageJSON := simplejson.New()
6060
imageJSON.Set("type", "image")
6161
imageJSON.Set("src", evalContext.ImagePublicUrl)

0 commit comments

Comments
 (0)