diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-06-11 06:39:45 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-06-13 06:17:49 -0400 |
commit | e8006c797888be2f2a07f5ffc3a5726182e044f8 (patch) | |
tree | bb70ef56433c0b5aff1d2ea1292467da6e1a0539 /pkg/api/handlers/compat/images_build.go | |
parent | e549ca5078b60defca91c724305cac8929b8ff0f (diff) | |
download | podman-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/api/handlers/compat/images_build.go')
-rw-r--r-- | pkg/api/handlers/compat/images_build.go | 4 |
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 |