mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Read from 'path' to retain backward compatibility
This commit is contained in:
@@ -20,7 +20,10 @@ func Factory(conf *audit.BackendConfig) (audit.Backend, error) {
|
||||
|
||||
path, ok := conf.Config["file_path"]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("file_path is required")
|
||||
path, ok = conf.Config["path"]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("file_path is required")
|
||||
}
|
||||
}
|
||||
|
||||
// Check if hashing of accessor is disabled
|
||||
|
||||
Reference in New Issue
Block a user