From e47a404d8baacfbfe3a2d472027155f28ec24a18 Mon Sep 17 00:00:00 2001 From: Francois GUILLIER Date: Mon, 4 Nov 2024 10:58:49 +0100 Subject: [PATCH] fix(export): engine type version for generic --- pkg/vault/engine.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/vault/engine.go b/pkg/vault/engine.go index 0312f9c8..4fc806f0 100644 --- a/pkg/vault/engine.go +++ b/pkg/vault/engine.go @@ -49,6 +49,12 @@ func (v *Vault) GetEngineTypeVersion(rootPath string) (string, string, error) { eType = t.(string) } + // "options" is nil in "generic" type + //nolint: goconst + if eType == "generic" { + return "kv", "1", nil + } + v, ok := data.Data["options"] if ok { //nolint: forcetypeassert