mirror of
https://github.com/distribution/distribution.git
synced 2025-08-08 02:13:52 +00:00
Fix login command
Signed-off-by: Tibor Vass <teabee89@gmail.com>
This commit is contained in:
parent
dff0678909
commit
0481c669c7
@ -50,9 +50,11 @@ func (s *Service) Auth(job *engine.Job) engine.Status {
|
|||||||
authConfig.ServerAddress = endpoint.String()
|
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)
|
return job.Error(err)
|
||||||
}
|
}
|
||||||
|
job.Printf("%s\n", status)
|
||||||
|
|
||||||
return engine.StatusOK
|
return engine.StatusOK
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user