summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-07 18:55:23 -0400
committerGitHub <noreply@github.com>2021-04-07 18:55:23 -0400
commit9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1 (patch)
treeb75ec2d72a516d2469dec5de8634fa0e0c9ad442 /pkg/api/handlers/compat
parent8c0df1c44a496d30b6e122c4ebc1dae9b5059607 (diff)
parent84907324fa02b8ede502a47b522fc717e782a909 (diff)
downloadpodman-9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1.tar.gz
podman-9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1.tar.bz2
podman-9ba2e78cdcc28c15d72a76f6200a74e7ad6562b1.zip
Merge pull request #9958 from jmguzik/limit-prune-filters-for-volumes
Volumes prune endpoint should use only prune filters
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/volumes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/volumes.go b/pkg/api/handlers/compat/volumes.go
index 42ece643b..d86fc1e19 100644
--- a/pkg/api/handlers/compat/volumes.go
+++ b/pkg/api/handlers/compat/volumes.go
@@ -266,7 +266,7 @@ func PruneVolumes(w http.ResponseWriter, r *http.Request) {
}
f := (url.Values)(*filterMap)
- filterFuncs, err := filters.GenerateVolumeFilters(f)
+ filterFuncs, err := filters.GeneratePruneVolumeFilters(f)
if err != nil {
utils.Error(w, "Something when wrong.", http.StatusInternalServerError, errors.Wrapf(err, "failed to parse filters for %s", f.Encode()))
return