mirror of
https://github.com/goharbor/harbor
synced 2025-04-20 20:23:38 +00:00
Merge branch 'bug_fix_for_delete_repo' into sync_image
Conflicts: api/repository.go
This commit is contained in:
commit
f050c963d5
|
@ -133,6 +133,12 @@ func (ra *RepositoryAPI) Delete() {
|
|||
log.Errorf("error occurred while listing tags of %s: %v", repoName, err)
|
||||
ra.CustomAbort(http.StatusInternalServerError, "internal error")
|
||||
}
|
||||
|
||||
// TODO remove the logic if the bug of registry is fixed
|
||||
if len(tagList) == 0 {
|
||||
ra.CustomAbort(http.StatusNotFound, http.StatusText(http.StatusNotFound))
|
||||
}
|
||||
|
||||
tags = append(tags, tagList...)
|
||||
} else {
|
||||
tags = append(tags, tag)
|
||||
|
|
Loading…
Reference in New Issue
Block a user