Read from 'path' to retain backward compatibility
This commit is contained in:
parent
dd94e8e689
commit
39a0c8e91f
|
@ -19,9 +19,12 @@ func Factory(conf *audit.BackendConfig) (audit.Backend, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
path, ok := conf.Config["file_path"]
|
path, ok := conf.Config["file_path"]
|
||||||
|
if !ok {
|
||||||
|
path, ok = conf.Config["path"]
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, fmt.Errorf("file_path is required")
|
return nil, fmt.Errorf("file_path is required")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check if hashing of accessor is disabled
|
// Check if hashing of accessor is disabled
|
||||||
hmacAccessor := true
|
hmacAccessor := true
|
||||||
|
|
Loading…
Reference in New Issue