mirror of https://github.com/docker/docs.git
Merge pull request #145 from dotcloud/144-login_daemon_mode-fix
Login now works with daemon mode
This commit is contained in:
commit
e55b8b2fd9
|
@ -98,6 +98,8 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
|
||||||
status, err := auth.Login(newAuthConfig)
|
status, err := auth.Login(newAuthConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(stdout, "Error : %s\n", err)
|
fmt.Fprintf(stdout, "Error : %s\n", err)
|
||||||
|
} else {
|
||||||
|
srv.runtime.authConfig = newAuthConfig
|
||||||
}
|
}
|
||||||
if status != "" {
|
if status != "" {
|
||||||
fmt.Fprintf(stdout, status)
|
fmt.Fprintf(stdout, status)
|
||||||
|
|
Loading…
Reference in New Issue