From 80431893ee8ac753a461ff54ee29108f9b587831 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Thu, 25 Jul 2024 10:54:10 -0700 Subject: [PATCH] Normalize configuration to match jobservices.yml (use 'notification_agent', not 'notifications') --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 745aa78..4b0a584 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,7 @@ var httpClient = http.Client{Transport: otelhttp.NewTransport(http.DefaultTransp const defaultConfig = `db: uri: "db:5432" -notifications: +notification_agent: base: http://notification-agent iplant_groups: base: http://iplant-groups @@ -96,7 +96,7 @@ func sendNotif(ctx context.Context, j *Job, status, subject, msg string) error { // ConfigureNotifications sets up the notification emitters. func ConfigureNotifications(cfg *viper.Viper, notifPath string) error { - notifBase := cfg.GetString("notifications.base") + notifBase := cfg.GetString("notification_agent.base") notifURL, err := url.Parse(notifBase) if err != nil { return errors.Wrapf(err, "failed to parse %s", notifBase)