Fix profile config parsing

This commit is contained in:
Daniel
2022-02-15 14:35:41 +01:00
parent 888b33918a
commit 3be1c78e16
3 changed files with 14 additions and 24 deletions

View File

@@ -131,12 +131,8 @@ func (h *databaseHook) PrePut(r record.Record) (record.Record, error) {
// clean config
config.CleanHierarchicalConfig(profile.Config)
// prepare config
err = profile.prepConfig()
if err != nil {
// error here, warning when loading
return nil, err
}
// prepare profile
profile.prepProfile()
// parse config
err = profile.parseConfig()