From a372f982c1383a3b4d742ef4f4de1a645cd7434d Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Thu, 2 May 2013 15:39:44 -0700 Subject: [PATCH] Switching to prod index server --- auth/auth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/auth.go b/auth/auth.go index b06086ff6a..5a5987ace8 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -15,7 +15,7 @@ import ( const CONFIGFILE = ".dockercfg" // the registry server we want to login against -const INDEX_SERVER = "https://indexstaging-docker.dotcloud.com" +const INDEX_SERVER = "https://index.docker.io" type AuthConfig struct { Username string `json:"username"` @@ -131,11 +131,11 @@ func Login(authConfig *AuthConfig) (string, error) { } if reqStatusCode == 201 { - status = "Account created. Please use the confirmation link we sent"+ + status = "Account created. Please use the confirmation link we sent" + " to your e-mail to activate it.\n" storeConfig = true } else if reqStatusCode == 403 { - return "", fmt.Errorf("Login: Your account hasn't been activated. "+ + return "", fmt.Errorf("Login: Your account hasn't been activated. " + "Please check your e-mail for a confirmation link.") } else if reqStatusCode == 400 { if string(reqBody) == "\"Username or email already exists\"" {