From 44e0deff4490b32fa6dd4cd9392a4f7123142e48 Mon Sep 17 00:00:00 2001 From: Ben Paxton Date: Fri, 6 Oct 2017 14:48:46 +0100 Subject: [PATCH] Append trailing slash to folder listing in etcd3 backend (#3406) --- physical/etcd/etcd3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physical/etcd/etcd3.go b/physical/etcd/etcd3.go index 04944e59f4..7d9861f227 100644 --- a/physical/etcd/etcd3.go +++ b/physical/etcd/etcd3.go @@ -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