From cf3b3b0621b11ddd877190bccc6799674fac117e Mon Sep 17 00:00:00 2001 From: Swapnil Mhamane Date: Tue, 3 Sep 2019 20:16:51 +0530 Subject: [PATCH] Fix oss object listing Signed-off-by: Swapnil Mhamane --- pkg/snapstore/oss_snapstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/snapstore/oss_snapstore.go b/pkg/snapstore/oss_snapstore.go index 9788ae835..4390aa98c 100644 --- a/pkg/snapstore/oss_snapstore.go +++ b/pkg/snapstore/oss_snapstore.go @@ -223,7 +223,7 @@ func (s *OSSSnapStore) List() (SnapList, error) { marker := "" for { - lsRes, err := s.bucket.ListObjects(oss.Marker(marker)) + lsRes, err := s.bucket.ListObjects(oss.Marker(marker), oss.Prefix(s.prefix)) if err != nil { return nil, err }