commit for fix s3 empty dic

Signed-off-by: Gang Wang <gangwang@alauda.io>
This commit is contained in:
Gang Wang 2022-01-06 16:52:12 +08:00
parent 2800ab0224
commit 2693e3560e

View file

@ -36,7 +36,7 @@ func (ts *tagStore) All(ctx context.Context) ([]string, error) {
if err != nil {
switch err := err.(type) {
case storagedriver.PathNotFoundError:
return tags, distribution.ErrRepositoryUnknown{Name: ts.repository.Named().Name()}
return tags, nil
default:
return tags, err
}