Skip to content

Commit

Permalink
fix(export): engine type version for generic
Browse files Browse the repository at this point in the history
  • Loading branch information
guillier-obs authored and FalcoSuessgott committed Nov 7, 2024
1 parent 6434d84 commit 14892b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/vault/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14892b3

Please sign in to comment.