fixup! allow custom config per boxID, fixes #5
This commit is contained in:
parent
dc7a2019e7
commit
d8e6d642fc
1 changed files with 2 additions and 2 deletions
|
@ -91,10 +91,10 @@ func getNotifyConf(boxID string) (*core.NotifyConfig, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// override with per box configuration from file
|
// override with per box configuration from file
|
||||||
if keyDefined("healthchecks."+boxID+".events") {
|
if keyDefined("healthchecks." + boxID + ".events") {
|
||||||
conf.Events = []core.NotifyEvent{}
|
conf.Events = []core.NotifyEvent{}
|
||||||
}
|
}
|
||||||
err = viper.UnmarshalKey("healthchecks." + boxID, conf)
|
err = viper.UnmarshalKey("healthchecks."+boxID, conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue