Skip to content

Commit

Permalink
Normalize configuration to match jobservices.yml (use 'notification_a…
Browse files Browse the repository at this point in the history
…gent', not 'notifications')
  • Loading branch information
ianmcorvidae committed Jul 25, 2024
1 parent 6a3739c commit 8043189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8043189

Please sign in to comment.