Append trailing slash to folder listing in etcd3 backend (#3406)

This commit is contained in:
Ben Paxton 2017-10-06 14:48:46 +01:00 committed by Jeff Mitchell
parent 111369e336
commit 44e0deff44

View File

@ -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