Skip to content

Commit 0d729ae

Browse files
authored
Merge pull request grafana#6512 from utkarshcmu/pagerduty_bug
Send test notification fixed
2 parents 5542b0a + 610ea09 commit 0d729ae

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)