mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
Containers prune endpoint should use only prune filters
Containers endpoints for HTTP compad and libpod APIs allowed usage of list HTTP endpoint filter funcs. Documentation in case of libpod and compat API does not allow that. This commit aligns code with the documentation. Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
This commit is contained in:
@ -23,7 +23,7 @@ func PruneContainers(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
filterFuncs := make([]libpod.ContainerFilter, 0, len(*filtersMap))
|
||||
for k, v := range *filtersMap {
|
||||
generatedFunc, err := filters.GenerateContainerFilterFuncs(k, v, runtime)
|
||||
generatedFunc, err := filters.GeneratePruneContainerFilterFuncs(k, v, runtime)
|
||||
if err != nil {
|
||||
utils.InternalServerError(w, err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user