diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-14 09:22:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 09:22:30 -0500 |
commit | e5741b984ed438e4c716eec67c83b3c927a97ebb (patch) | |
tree | b4805b1a2a01cdb00bbb1f237ac194196fe446ae /libpod | |
parent | bdbf47f606fbb592d563d33ddf3b7200c8607bf2 (diff) | |
parent | a0204ada0974343cbf6eefe988ef35cdfe28fb52 (diff) | |
download | podman-e5741b984ed438e4c716eec67c83b3c927a97ebb.tar.gz podman-e5741b984ed438e4c716eec67c83b3c927a97ebb.tar.bz2 podman-e5741b984ed438e4c716eec67c83b3c927a97ebb.zip |
Merge pull request #8689 from bblenard/issue-8672-volume-prune
Add volume prune --filter support
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/runtime_volume.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/runtime_volume.go b/libpod/runtime_volume.go index 055a243c0..10c32a119 100644 --- a/libpod/runtime_volume.go +++ b/libpod/runtime_volume.go @@ -133,9 +133,9 @@ func (r *Runtime) GetAllVolumes() ([]*Volume, error) { } // PruneVolumes removes unused volumes from the system -func (r *Runtime) PruneVolumes(ctx context.Context) (map[string]error, error) { +func (r *Runtime) PruneVolumes(ctx context.Context, filterFuncs []VolumeFilter) (map[string]error, error) { reports := make(map[string]error) - vols, err := r.GetAllVolumes() + vols, err := r.Volumes(filterFuncs...) if err != nil { return nil, err } |