diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-16 16:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 16:08:58 +0200 |
commit | 0968f25988624699f2db559f0a984cf84c8a284f (patch) | |
tree | 930b6592e196e3519924457774d0270aa727cee0 /pkg/api/handlers/compat/images_build.go | |
parent | e0dd2279120f9883c0678cce644952007e3ae771 (diff) | |
parent | af3c4d88b405adb0353f8085298d25e3a5937ee3 (diff) | |
download | podman-0968f25988624699f2db559f0a984cf84c8a284f.tar.gz podman-0968f25988624699f2db559f0a984cf84c8a284f.tar.bz2 podman-0968f25988624699f2db559f0a984cf84c8a284f.zip |
Merge pull request #6615 from vrothberg/auto-update-variant
auto-update: use image's arch
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 399c104e9..913994f46 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -40,7 +40,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { } } - anchorDir, err := extractTarFile(r, w) + anchorDir, err := extractTarFile(r) if err != nil { utils.InternalServerError(w, err) return @@ -241,7 +241,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { }) } -func extractTarFile(r *http.Request, w http.ResponseWriter) (string, error) { +func extractTarFile(r *http.Request) (string, error) { // build a home for the request body anchorDir, err := ioutil.TempDir("", "libpod_builder") if err != nil { |