Fix login command

Signed-off-by: Tibor Vass <teabee89@gmail.com>
This commit is contained in:
Tibor Vass 2014-10-28 21:20:30 -04:00
parent 1b72e0234e
commit 47a494e0fd

View file

@ -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
}