Alias versioned kv as vkv when mounting (#4240)

This commit is contained in:
Jeff Mitchell 2018-04-02 20:51:35 -04:00 committed by GitHub
parent 03cf302e9a
commit 42d2ee04bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1628,6 +1628,15 @@ func (b *SystemBackend) handleMount(ctx context.Context, req *logical.Request, d
config.PassthroughRequestHeaders = apiConfig.PassthroughRequestHeaders
}
// Alias versioned KV
if logicalType == "vkv" {
logicalType = "kv"
if options == nil {
options = map[string]string{}
}
options["versioned"] = "true"
}
// Create the mount entry
me := &MountEntry{
Table: mountTableType,