Commit 2ca14a33 authored by Brian Downs's avatar Brian Downs

remove unnecessary prefix:

parent a711f6a3
......@@ -904,9 +904,7 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho
ctx, cancel := context.WithCancel(ctx)
defer cancel()
objects := e.s3.client.ListObjects(ctx, e.config.EtcdS3BucketName, minio.ListObjectsOptions{
Prefix: e.s3.snapshotPrefix(),
})
objects := e.s3.client.ListObjects(ctx, e.config.EtcdS3BucketName, minio.ListObjectsOptions{})
for obj := range objects {
if obj.Err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment