Skip to content

Commit

Permalink
alex dec 5 comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gabemontero committed Dec 5, 2017
1 parent c0a4726 commit cd91deb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/image/prune/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -1018,13 +1018,13 @@ func (p *pruner) Prune(
errs = append(errs, pruneImageComponents(p.g, p.registryClient, p.registryURL, prunableComponents, layerLinkPruner)...)
errs = append(errs, pruneBlobs(p.g, p.registryClient, p.registryURL, prunableComponents, blobPruner)...)
errs = append(errs, pruneManifests(p.g, p.registryClient, p.registryURL, prunableImageNodes, manifestPruner)...)
}

if len(errs) > 0 {
// If we had any errors deleting layers, blobs, or manifest data from the registry,
// stop here and don't delete any images. This way, you can rerun prune and retry
// things that failed.
return kerrors.NewAggregate(errs)
if len(errs) > 0 {
// If we had any errors deleting layers, blobs, or manifest data from the registry,
// stop here and don't delete any images. This way, you can rerun prune and retry
// things that failed.
return kerrors.NewAggregate(errs)
}
}

errs = pruneImages(p.g, prunableImageNodes, imagePruner)
Expand Down

0 comments on commit cd91deb

Please sign in to comment.