summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-14 09:09:16 -0400
committerGitHub <noreply@github.com>2021-06-14 09:09:16 -0400
commite3dd12a2bed03ae7ad221eefd7b92ddef2a59888 (patch)
treebb70ef56433c0b5aff1d2ea1292467da6e1a0539 /pkg/api/handlers
parente549ca5078b60defca91c724305cac8929b8ff0f (diff)
parente8006c797888be2f2a07f5ffc3a5726182e044f8 (diff)
downloadpodman-e3dd12a2bed03ae7ad221eefd7b92ddef2a59888.tar.gz
podman-e3dd12a2bed03ae7ad221eefd7b92ddef2a59888.tar.bz2
podman-e3dd12a2bed03ae7ad221eefd7b92ddef2a59888.zip
Merge pull request #10652 from rhatdan/devices
Fix handling of podman-remote build --device
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/compat/images_build.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go
index 9c4dd8638..e933b9811 100644
--- a/pkg/api/handlers/compat/images_build.go
+++ b/pkg/api/handlers/compat/images_build.go
@@ -189,8 +189,8 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
var devices = []string{}
if _, found := r.URL.Query()["devices"]; found {
var m = []string{}
- if err := json.Unmarshal([]byte(query.DropCapabilities), &m); err != nil {
- utils.BadRequest(w, "devices", query.DropCapabilities, err)
+ if err := json.Unmarshal([]byte(query.Devices), &m); err != nil {
+ utils.BadRequest(w, "devices", query.Devices, err)
return
}
devices = m