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

@@ -178,11 +178,8 @@ func prepProfile(r record.Record) (*Profile, error) {
return nil, err
}
// prepare config
err = profile.prepConfig()
if err != nil {
log.Errorf("profiles: profile %s has (partly) invalid configuration: %s", profile.ID, err)
}
// prepare profile
profile.prepProfile()
// parse config
err = profile.parseConfig()