aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-02 11:31:43 -0400
committerGitHub <noreply@github.com>2020-10-02 11:31:43 -0400
commitb58980a43ccfcef5134274c3963bf68cc51a4983 (patch)
tree540743367170f334f101d766e5a032904511a024 /pkg
parent4fb36a3133317f8ca6216fe1e4b0b08f5e3a4c0c (diff)
parent6c151b98b6d4d6a6d9acf64aaafdb5265d07932e (diff)
downloadpodman-b58980a43ccfcef5134274c3963bf68cc51a4983.tar.gz
podman-b58980a43ccfcef5134274c3963bf68cc51a4983.tar.bz2
podman-b58980a43ccfcef5134274c3963bf68cc51a4983.zip
Merge pull request #7887 from vrothberg/fix-7872
image prune: remove all candidates
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/abi/images.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index d56dc7d94..965c63bec 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -46,11 +46,7 @@ func (ir *ImageEngine) Exists(_ context.Context, nameOrID string) (*entities.Boo
}
func (ir *ImageEngine) Prune(ctx context.Context, opts entities.ImagePruneOptions) (*entities.ImagePruneReport, error) {
- return ir.pruneImagesHelper(ctx, opts.All, opts.Filter)
-}
-
-func (ir *ImageEngine) pruneImagesHelper(ctx context.Context, all bool, filters []string) (*entities.ImagePruneReport, error) {
- results, err := ir.Libpod.ImageRuntime().PruneImages(ctx, all, filters)
+ results, err := ir.Libpod.ImageRuntime().PruneImages(ctx, opts.All, opts.Filter)
if err != nil {
return nil, err
}