always cleanup blob download (#747)
This commit is contained in:
parent
0040f543a2
commit
65dcd0ce35
1 changed files with 1 additions and 0 deletions
|
@ -314,6 +314,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error {
|
||||||
requestURL := opts.mp.BaseURL()
|
requestURL := opts.mp.BaseURL()
|
||||||
requestURL = requestURL.JoinPath("v2", opts.mp.GetNamespaceRepository(), "blobs", opts.digest)
|
requestURL = requestURL.JoinPath("v2", opts.mp.GetNamespaceRepository(), "blobs", opts.digest)
|
||||||
if err := download.Prepare(ctx, requestURL, opts.regOpts); err != nil {
|
if err := download.Prepare(ctx, requestURL, opts.regOpts); err != nil {
|
||||||
|
blobDownloadManager.Delete(opts.digest)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue