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