Skip to content

Commit

Permalink
queries to kv1 should return path variable not string (#85)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
landrew57 authored May 25, 2022
1 parent 1d5e324 commit 9ed84fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vaultengine/vaultclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (client *Client) MountpathSplitPrefix(path string) (string, string, error)
if err != nil {
// any 404 indicates k/v v1
if resp != nil && resp.StatusCode == 404 {
return "", "path", nil
return "", path, nil
}
return "", "", err
}
Expand Down

0 comments on commit 9ed84fc

Please sign in to comment.