Merge pull request #6512 from utkarshcmu/pagerduty_bug

Send test notification fixed
This commit is contained in:
Carl Bergquist 2016-11-08 20:30:41 +01:00 committed by GitHub
commit 0d729ae392

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)