Quellcode durchsuchen

Use correct auth config when logging in.

Johan Rydberg vor 11 Jahren
Ursprung
Commit
967010ae8c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      commands.go

+ 1 - 1
commands.go

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