Login now works with daemon mode

Upstream-commit: ffe5370e35d7eda627894a4510095dca26bdbbca
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-03-22 18:37:53 -07:00
parent 189f87f526
commit e403584f6d
+2
View File
@@ -98,6 +98,8 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
status, err := auth.Login(newAuthConfig)
if err != nil {
fmt.Fprintf(stdout, "Error : %s\n", err)
} else {
srv.runtime.authConfig = newAuthConfig
}
if status != "" {
fmt.Fprintf(stdout, status)