diff options
author | Jakub Guzik <jakubmguzik@gmail.com> | 2021-04-07 00:02:12 +0200 |
---|---|---|
committer | Jakub Guzik <jakubmguzik@gmail.com> | 2021-04-07 22:37:49 +0200 |
commit | 84907324fa02b8ede502a47b522fc717e782a909 (patch) | |
tree | de64d203f572634501f0417ff79d0a6c9b38d652 /pkg/api/handlers/compat/volumes.go | |
parent | d83f49ef6b8a53535257bb56f5573ef3f65e3ba9 (diff) | |
download | podman-84907324fa02b8ede502a47b522fc717e782a909.tar.gz podman-84907324fa02b8ede502a47b522fc717e782a909.tar.bz2 podman-84907324fa02b8ede502a47b522fc717e782a909.zip |
Volumes prune endpoint should use only prune filters
Volumes endpoints for HTTP compat and libpod APIs allowed
usage of list HTTP endpoint filter funcs. Documentation in
case of compat API does not allow that. This commit aligns
code with the documentation and also ligns libpod with compat API.
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
Diffstat (limited to 'pkg/api/handlers/compat/volumes.go')
-rw-r--r-- | pkg/api/handlers/compat/volumes.go | 2 |
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 |