소스 검색

Send test notification fixed

utkarshcmu 9 년 전
부모
커밋
610ea090dc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pkg/services/alerting/notifiers/pagerduty.go

+ 1 - 1
pkg/services/alerting/notifiers/pagerduty.go

@@ -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)