mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
Append trailing slash to folder listing in etcd3 backend (#3406)
This commit is contained in:
parent
111369e336
commit
44e0deff44
@ -200,7 +200,7 @@ func (c *EtcdBackend) List(prefix string) ([]string, error) {
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), etcd3RequestTimeout)
|
||||
defer cancel()
|
||||
prefix = path.Join(c.path, prefix)
|
||||
prefix = path.Join(c.path, prefix) + "/"
|
||||
resp, err := c.etcd.Get(ctx, prefix, clientv3.WithPrefix())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user