summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-14 20:49:54 +0100
committerGitHub <noreply@github.com>2020-02-14 20:49:54 +0100
commitca303586b3f15ea507eb4f1f9aa9c7658aebc6e4 (patch)
tree6ffea5a389b624d919a2f8e9cf39fc2ea3d2e75c /pkg/api
parent3e0088ce7cf8063cf0f1a3922acaddb2cf43fe8e (diff)
parent08bb9317cbd1a00b4dd52bc3409699271351403d (diff)
downloadpodman-ca303586b3f15ea507eb4f1f9aa9c7658aebc6e4.tar.gz
podman-ca303586b3f15ea507eb4f1f9aa9c7658aebc6e4.tar.bz2
podman-ca303586b3f15ea507eb4f1f9aa9c7658aebc6e4.zip
Merge pull request #5216 from baude/bindingstestcache
add caching for binding tests
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/utils/images.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/api/handlers/utils/images.go b/pkg/api/handlers/utils/images.go
index 2b651584a..d0dfbf3ab 100644
--- a/pkg/api/handlers/utils/images.go
+++ b/pkg/api/handlers/utils/images.go
@@ -31,9 +31,12 @@ func GetImages(w http.ResponseWriter, r *http.Request) ([]*image.Image, error) {
if _, found := mux.Vars(r)["digests"]; found && query.Digests {
UnSupportedParameter("digests")
}
-
- if _, found := r.URL.Query()["filters"]; found {
- filters = append(filters, fmt.Sprintf("reference=%s", ""))
+ if len(query.Filters) > 0 {
+ for k, v := range query.Filters {
+ for _, val := range v {
+ filters = append(filters, fmt.Sprintf("%s=%s", k, val))
+ }
+ }
}
return runtime.ImageRuntime().GetImagesWithFilters(filters)
}