aboutsummaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-06-11 06:39:45 -0400
committerMatthew Heon <mheon@redhat.com>2021-06-24 14:10:42 -0400
commitd5f0729b23eed2753ed3d49394030a9163c0f4db (patch)
treeefb07b1e9bfaa1e00998ca06f335c5a51ec1d608 /pkg/api
parent90805fa39fbd89e343cdbcd0f97edec1bc635a51 (diff)
downloadpodman-d5f0729b23eed2753ed3d49394030a9163c0f4db.tar.gz
podman-d5f0729b23eed2753ed3d49394030a9163c0f4db.tar.bz2
podman-d5f0729b23eed2753ed3d49394030a9163c0f4db.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/api')
-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