fix api test case failure

Signed-off-by: Steven Zou <szou@vmware.com>
This commit is contained in:
Steven Zou 2019-10-23 13:24:53 +08:00
parent a8fd071fa7
commit 38395e015c

View File

@ -19,6 +19,7 @@ import (
"errors"
"fmt"
"io/ioutil"
"net/http"
"sort"
"strconv"
"strings"
@ -311,6 +312,12 @@ func (ra *RepositoryAPI) Delete() {
}
if err = rc.DeleteManifest(digests[t]); err != nil {
if regErr, ok := err.(*commonhttp.Error); ok {
if regErr.Code == http.StatusNotFound {
continue
}
}
ra.ParseAndHandleError(fmt.Sprintf("failed to delete tag %s", t), err)
return
}