Skip to content

Commit

Permalink
fix: version detection when engine gets converted
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed May 27, 2021
1 parent 9ad6bee commit 558cf0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ func getVersionAndMount(c *api.Client, p string) (version int, mount string, err

return version, k, nil
case "generic":
return 1, k, nil
version, err := strconv.Atoi(m.Options["version"])
if err != nil {
return 0, "", err
}

return version, k, nil
default:
return 0, "", fmt.Errorf("matching mount %s for path %s is not of type kv", k, p)
}
Expand Down

0 comments on commit 558cf0d

Please sign in to comment.