Browse code

Switching to prod index server

Sam Alba authored on 2013/05/03 07:39:44
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@ import (
15 15
 const CONFIGFILE = ".dockercfg"
16 16
 
17 17
 // the registry server we want to login against
18
-const INDEX_SERVER = "https://indexstaging-docker.dotcloud.com"
18
+const INDEX_SERVER = "https://index.docker.io"
19 19
 
20 20
 type AuthConfig struct {
21 21
 	Username string `json:"username"`
... ...
@@ -131,11 +131,11 @@ func Login(authConfig *AuthConfig) (string, error) {
131 131
 	}
132 132
 
133 133
 	if reqStatusCode == 201 {
134
-		status = "Account created. Please use the confirmation link we sent"+
134
+		status = "Account created. Please use the confirmation link we sent" +
135 135
 			" to your e-mail to activate it.\n"
136 136
 		storeConfig = true
137 137
 	} else if reqStatusCode == 403 {
138
-		return "", fmt.Errorf("Login: Your account hasn't been activated. "+
138
+		return "", fmt.Errorf("Login: Your account hasn't been activated. " +
139 139
 			"Please check your e-mail for a confirmation link.")
140 140
 	} else if reqStatusCode == 400 {
141 141
 		if string(reqBody) == "\"Username or email already exists\"" {