From 39a0c8e91f1e661b083f01d9abac9d4c9504e59c Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Tue, 15 Mar 2016 20:05:51 -0400 Subject: [PATCH] Read from 'path' to retain backward compatibility --- builtin/audit/file/backend.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builtin/audit/file/backend.go b/builtin/audit/file/backend.go index ccb3935d3..52a673352 100644 --- a/builtin/audit/file/backend.go +++ b/builtin/audit/file/backend.go @@ -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