diff options
author | Jakub Guzik <jakubmguzik@gmail.com> | 2021-03-30 10:19:22 +0200 |
---|---|---|
committer | Jakub Guzik <jakubmguzik@gmail.com> | 2021-03-30 10:19:22 +0200 |
commit | f7d82a1f30d31830de18da14c61e85d2a0688605 (patch) | |
tree | 86be25e45d7564afc183e43df0ce5c4d3a12135b /pkg/api/handlers | |
parent | 08eab3f8f77d8206e3c788fa0a8f455ef854db1c (diff) | |
download | podman-f7d82a1f30d31830de18da14c61e85d2a0688605.tar.gz podman-f7d82a1f30d31830de18da14c61e85d2a0688605.tar.bz2 podman-f7d82a1f30d31830de18da14c61e85d2a0688605.zip |
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>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/compat/containers_prune.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers_prune.go b/pkg/api/handlers/compat/containers_prune.go index e37929d27..61ea7a89e 100644 --- a/pkg/api/handlers/compat/containers_prune.go +++ b/pkg/api/handlers/compat/containers_prune.go @@ -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 |