grafana: notify with image if image url exists
This commit is contained in:
parent
4de3c091fe
commit
2d49586312
|
@ -74,7 +74,9 @@ func init() {
|
||||||
}
|
}
|
||||||
logger.Infof("run hook")
|
logger.Infof("run hook")
|
||||||
runtime.Notify(client, hook, request.String())
|
runtime.Notify(client, hook, request.String())
|
||||||
runtime.NotifyImage(client, hook, request.ImageURL)
|
if request.ImageURL != "" {
|
||||||
|
runtime.NotifyImage(client, hook, request.ImageURL)
|
||||||
|
}
|
||||||
ok = true
|
ok = true
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue