Unverified Commit 17ab8afe authored by Milos Gajdos's avatar Milos Gajdos Committed by GitHub
Browse files

Merge pull request #3174 from adamwg/manifest-delete-by-tag

manifests: Return UNSUPPORTED when deleting manifests by tag
parents 5a76dc8d 95f1eea5
Showing with 5 additions and 0 deletions
+5 -0
......@@ -485,6 +485,11 @@ func (imh *manifestHandler) applyResourcePolicy(manifest distribution.Manifest)
func (imh *manifestHandler) DeleteManifest(w http.ResponseWriter, r *http.Request) {
dcontext.GetLogger(imh).Debug("DeleteImageManifest")
if imh.Tag != "" {
imh.Errors = append(imh.Errors, errcode.ErrorCodeUnsupported)
return
}
manifests, err := imh.Repository.Manifests(imh)
if err != nil {
imh.Errors = append(imh.Errors, err)
......
Supports Markdown
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