diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-03-26 17:16:59 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-03-26 18:32:44 -0700 |
commit | 581dd312af6ada92b96e16dd95d45967bde5fd8a (patch) | |
tree | 13e55270aa70201f5514b769410a736a07b102af /pkg/domain/infra/abi | |
parent | 1710eca4e930f7ed3a2b060029c627c1a66a2349 (diff) | |
download | podman-581dd312af6ada92b96e16dd95d45967bde5fd8a.tar.gz podman-581dd312af6ada92b96e16dd95d45967bde5fd8a.tar.bz2 podman-581dd312af6ada92b96e16dd95d45967bde5fd8a.zip |
V2 podman image prune
* Fixed header for `podman image ls`
* Implemented prune `all` flag, preserved filter method for backwards
capability
* Updated binding tests
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r-- | pkg/domain/infra/abi/images.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go index e3b3e310b..44420c1e1 100644 --- a/pkg/domain/infra/abi/images.go +++ b/pkg/domain/infra/abi/images.go @@ -88,13 +88,18 @@ func (ir *ImageEngine) deleteImage(ctx context.Context, img *libpodImage.Image, } func (ir *ImageEngine) Prune(ctx context.Context, opts entities.ImagePruneOptions) (*entities.ImagePruneReport, error) { - results, err := ir.Libpod.ImageRuntime().PruneImages(ctx, opts.All, []string{}) + results, err := ir.Libpod.ImageRuntime().PruneImages(ctx, opts.All, opts.Filter) if err != nil { return nil, err } - report := entities.ImagePruneReport{} - copy(report.Report.Id, results) + report := entities.ImagePruneReport{ + Report: entities.Report{ + Id: results, + Err: nil, + }, + Size: 0, + } return &report, nil } |