diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-24 06:00:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 06:00:03 -0400 |
commit | d4e54fa9992d369596bcaf969bea8dbbcb7335ab (patch) | |
tree | 8f1d53081039b64330060d3e3e16717239206e2c /pkg/api/handlers/compat/auth.go | |
parent | bbd8b64a4247c591738f7ebbac683f48aa7351a5 (diff) | |
parent | 3bf52aa338b33de719e087e15402081568453284 (diff) | |
download | podman-d4e54fa9992d369596bcaf969bea8dbbcb7335ab.tar.gz podman-d4e54fa9992d369596bcaf969bea8dbbcb7335ab.tar.bz2 podman-d4e54fa9992d369596bcaf969bea8dbbcb7335ab.zip |
Merge pull request #15351 from marshall-lee/images-pull-simple
Simplify ImagesPull for when Quiet flag is on
Diffstat (limited to 'pkg/api/handlers/compat/auth.go')
-rw-r--r-- | pkg/api/handlers/compat/auth.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/auth.go b/pkg/api/handlers/compat/auth.go index 37d2b784d..ee478b9e3 100644 --- a/pkg/api/handlers/compat/auth.go +++ b/pkg/api/handlers/compat/auth.go @@ -1,7 +1,6 @@ package compat import ( - "context" "encoding/json" "errors" "fmt" @@ -44,7 +43,7 @@ func Auth(w http.ResponseWriter, r *http.Request) { fmt.Println("Authenticating with existing credentials...") registry := stripAddressOfScheme(authConfig.ServerAddress) - if err := DockerClient.CheckAuth(context.Background(), sysCtx, authConfig.Username, authConfig.Password, registry); err == nil { + if err := DockerClient.CheckAuth(r.Context(), sysCtx, authConfig.Username, authConfig.Password, registry); err == nil { utils.WriteResponse(w, http.StatusOK, entities.AuthReport{ IdentityToken: "", Status: "Login Succeeded", |