From d8e6d642fc62eab9c8311ff06e351adcf625757c Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Fri, 29 Jun 2018 21:27:55 +0200 Subject: [PATCH] fixup! allow custom config per boxID, fixes #5 --- cmd/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/config.go b/cmd/config.go index ea5f95c..9d69857 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -91,10 +91,10 @@ func getNotifyConf(boxID string) (*core.NotifyConfig, error) { } // override with per box configuration from file - if keyDefined("healthchecks."+boxID+".events") { + if keyDefined("healthchecks." + boxID + ".events") { conf.Events = []core.NotifyEvent{} } - err = viper.UnmarshalKey("healthchecks." + boxID, conf) + err = viper.UnmarshalKey("healthchecks."+boxID, conf) if err != nil { return nil, err }