diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-08 06:56:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 06:56:15 -0500 |
commit | a0b432d29d18c7385c2c976249bdc4eec95d335a (patch) | |
tree | 9e40297a48967cb64d2f3325f9ee15b3ea31aa7f /pkg/api/handlers/libpod/pods.go | |
parent | 78cda71372485f163909525f8d07194920968486 (diff) | |
parent | b059e1044f5a1bac6a531e6241e24f82c8c6a9c0 (diff) | |
download | podman-a0b432d29d18c7385c2c976249bdc4eec95d335a.tar.gz podman-a0b432d29d18c7385c2c976249bdc4eec95d335a.tar.bz2 podman-a0b432d29d18c7385c2c976249bdc4eec95d335a.zip |
Merge pull request #8912 from jwhonce/issues/8891
Restore compatible API for prune endpoints
Diffstat (limited to 'pkg/api/handlers/libpod/pods.go')
-rw-r--r-- | pkg/api/handlers/libpod/pods.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/libpod/pods.go b/pkg/api/handlers/libpod/pods.go index 5422411cf..de373f05f 100644 --- a/pkg/api/handlers/libpod/pods.go +++ b/pkg/api/handlers/libpod/pods.go @@ -235,7 +235,7 @@ func PodRestart(w http.ResponseWriter, r *http.Request) { } func PodPrune(w http.ResponseWriter, r *http.Request) { - reports, err := PodPruneHelper(w, r) + reports, err := PodPruneHelper(r) if err != nil { utils.InternalServerError(w, err) return @@ -243,7 +243,7 @@ func PodPrune(w http.ResponseWriter, r *http.Request) { utils.WriteResponse(w, http.StatusOK, reports) } -func PodPruneHelper(w http.ResponseWriter, r *http.Request) ([]*entities.PodPruneReport, error) { +func PodPruneHelper(r *http.Request) ([]*entities.PodPruneReport, error) { var ( runtime = r.Context().Value("runtime").(*libpod.Runtime) ) |