Browse Source

Use correct auth config when logging in.

Johan Rydberg 11 years ago
parent
commit
967010ae8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -303,7 +303,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
 	}
 	}
 
 
 	cli.LoadConfigFile()
 	cli.LoadConfigFile()
-	authconfig, ok := cli.configFile.Configs[auth.IndexServerAddress()]
+	authconfig, ok := cli.configFile.Configs[serverAddress]
 	if !ok {
 	if !ok {
 		authconfig = auth.AuthConfig{}
 		authconfig = auth.AuthConfig{}
 	}
 	}