mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix login command
Signed-off-by: Tibor Vass <teabee89@gmail.com>
This commit is contained in:
parent
9fc8b7f4e1
commit
e6efbd6596
1 changed files with 3 additions and 1 deletions
|
@ -50,9 +50,11 @@ func (s *Service) Auth(job *engine.Job) engine.Status {
|
|||
authConfig.ServerAddress = endpoint.String()
|
||||
}
|
||||
|
||||
if _, err := Login(authConfig, HTTPRequestFactory(nil)); err != nil {
|
||||
status, err := Login(authConfig, HTTPRequestFactory(nil))
|
||||
if err != nil {
|
||||
return job.Error(err)
|
||||
}
|
||||
job.Printf("%s\n", status)
|
||||
|
||||
return engine.StatusOK
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue