Skip to content

Commit 9ed84fc

Browse files
authored
queries to kv1 should return path variable not string (#85)
Currently if the API is determined to be kv1 the path is always set to path, whereas it should be set to the value of the variable passed in. Closes #78
1 parent 1d5e324 commit 9ed84fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/vaultengine/vaultclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (client *Client) MountpathSplitPrefix(path string) (string, string, error)
4747
if err != nil {
4848
// any 404 indicates k/v v1
4949
if resp != nil && resp.StatusCode == 404 {
50-
return "", "path", nil
50+
return "", path, nil
5151
}
5252
return "", "", err
5353
}

0 commit comments

Comments
 (0)