summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-06-11 06:39:45 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-06-13 06:17:49 -0400
commite8006c797888be2f2a07f5ffc3a5726182e044f8 (patch)
treebb70ef56433c0b5aff1d2ea1292467da6e1a0539 /pkg
parente549ca5078b60defca91c724305cac8929b8ff0f (diff)
downloadpodman-e8006c797888be2f2a07f5ffc3a5726182e044f8.tar.gz
podman-e8006c797888be2f2a07f5ffc3a5726182e044f8.tar.bz2
podman-e8006c797888be2f2a07f5ffc3a5726182e044f8.zip
Fix handling of podman-remote build --device
Fixes: https://github.com/containers/podman/issues/10614 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg')
-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