From 6bf848fbddc857839bbeb41fa14d7de6999f0573 Mon Sep 17 00:00:00 2001 From: Daniel Feinberg Date: Thu, 25 Apr 2019 15:34:26 -0600 Subject: [PATCH] fixing name of the option for the notification service tranformer for the pub/sub proxy (#16) --- .../httptransformer/notification_serivce_transformer.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/output/httptransformer/notification_serivce_transformer.go b/pkg/output/httptransformer/notification_serivce_transformer.go index a75158a..57e4559 100644 --- a/pkg/output/httptransformer/notification_serivce_transformer.go +++ b/pkg/output/httptransformer/notification_serivce_transformer.go @@ -3,12 +3,13 @@ package httptransformer import ( "encoding/json" "fmt" - "github.com/pantheon-systems/pauditd/pkg/system" - "github.com/spf13/viper" "os" "regexp" "strings" + "github.com/pantheon-systems/pauditd/pkg/system" + "github.com/spf13/viper" + "github.com/pantheon-systems/pauditd/pkg/metric" "github.com/pantheon-systems/pauditd/pkg/slog" @@ -38,7 +39,7 @@ func init() { // NewNotificationServiceTransformer creates new transformer func NewNotificationServiceTransformer(config *viper.Viper) ResponseBodyTransformer { - extraAttr := config.GetStringMapString("output.notification-service-transformer.extra_attributes") + extraAttr := config.GetStringMapString("output.notification_service_transformer.extra_attributes") return &NotificationServiceTransformer{ hostname: getHostname(), noTopicToStdOut: false,