notify/pagerduty: fix images (#1931)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
55c3b7bb22
commit
02c9bb05bf
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue