diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-03-27 18:47:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 18:47:51 +0100 |
commit | 2c5c1980200806d2a0dde375564b505b9150e645 (patch) | |
tree | c14f1a085aebf15cd1f49aa3b64fdb022cf9bba0 /pkg/api/handlers/compat/images.go | |
parent | 4233250c430a8f769048548b6ad6affd0d9e65e0 (diff) | |
parent | 581dd312af6ada92b96e16dd95d45967bde5fd8a (diff) | |
download | podman-2c5c1980200806d2a0dde375564b505b9150e645.tar.gz podman-2c5c1980200806d2a0dde375564b505b9150e645.tar.bz2 podman-2c5c1980200806d2a0dde375564b505b9150e645.zip |
Merge pull request #5632 from jwhonce/wip/images
V2 podman image prune
Diffstat (limited to 'pkg/api/handlers/compat/images.go')
-rw-r--r-- | pkg/api/handlers/compat/images.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/images.go b/pkg/api/handlers/compat/images.go index cce718f54..354a13bf5 100644 --- a/pkg/api/handlers/compat/images.go +++ b/pkg/api/handlers/compat/images.go @@ -64,6 +64,7 @@ func PruneImages(w http.ResponseWriter, r *http.Request) { runtime := r.Context().Value("runtime").(*libpod.Runtime) query := struct { + All bool Filters map[string][]string `schema:"filters"` }{ // This is where you can override the golang default value for one of fields @@ -80,7 +81,7 @@ func PruneImages(w http.ResponseWriter, r *http.Request) { filters = append(filters, fmt.Sprintf("%s=%s", k, val)) } } - pruneCids, err := runtime.ImageRuntime().PruneImages(r.Context(), false, filters) + pruneCids, err := runtime.ImageRuntime().PruneImages(r.Context(), query.All, filters) if err != nil { utils.InternalServerError(w, err) return |