Fix login command
Signed-off-by: Tibor Vass <teabee89@gmail.com> Upstream-commit: e6efbd659606386db4d0b83b98f9e189cf42595c Component: engine
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user