fixing notifications.

This commit is contained in:
Jason Kulatunga
2020-10-02 21:05:04 -06:00
parent 6377a258f6
commit d339e967a6
5 changed files with 10 additions and 1 deletions
+5
View File
@@ -71,6 +71,11 @@ func (n *Notify) Send() error {
configUrls := n.Config.GetStringSlice("notify.urls")
n.Logger.Debugf("Configured notification services: %v", configUrls)
if len(configUrls) == 0 {
n.Logger.Infof("No notification endpoints configured. Skipping failure notification.")
return nil
}
//remove http:// https:// and script:// prefixed urls
notifyWebhooks := []string{}
notifyScripts := []string{}