notify/pagerduty: fix images (#1931)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2019-06-24 12:19:06 +02:00 committed by GitHub
parent 55c3b7bb22
commit 02c9bb05bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -225,7 +225,7 @@ type PagerdutyLink struct {
type PagerdutyImage struct {
Src string `yaml:"src,omitempty" json:"src,omitempty"`
Alt string `yaml:"alt,omitempty" json:"alt,omitempty"`
Text string `yaml:"text,omitempty" json:"text,omitempty"`
Href string `yaml:"href,omitempty" json:"href,omitempty"`
}
// UnmarshalYAML implements the yaml.Unmarshaler interface.

View File

@ -84,7 +84,7 @@ type pagerDutyLink struct {
type pagerDutyImage struct {
Src string `json:"src"`
Alt string `json:"alt"`
Text string `json:"text"`
Href string `json:"href"`
}
type pagerDutyPayload struct {
@ -187,7 +187,7 @@ func (n *Notifier) notifyV2(
for index, item := range n.conf.Images {
msg.Images[index].Src = tmpl(item.Src)
msg.Images[index].Alt = tmpl(item.Alt)
msg.Images[index].Text = tmpl(item.Text)
msg.Images[index].Href = tmpl(item.Href)
}
for index, item := range n.conf.Links {