grafana: notify with image if image url exists

This commit is contained in:
Martin/Geno 2019-02-13 14:05:20 +01:00
parent 4de3c091fe
commit 2d49586312
1 changed files with 3 additions and 1 deletions

View File

@ -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())
if request.ImageURL != "" {
runtime.NotifyImage(client, hook, request.ImageURL) runtime.NotifyImage(client, hook, request.ImageURL)
}
ok = true ok = true
} }
if !ok { if !ok {