Skip to content

Commit a372f98

Browse files
samalbashin-
authored andcommitted
Switching to prod index server
1 parent d985050 commit a372f98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

auth/auth.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
const CONFIGFILE = ".dockercfg"
1616

1717
// 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"
1919

2020
type AuthConfig struct {
2121
Username string `json:"username"`
@@ -131,11 +131,11 @@ func Login(authConfig *AuthConfig) (string, error) {
131131
}
132132

133133
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" +
135135
" to your e-mail to activate it.\n"
136136
storeConfig = true
137137
} 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. " +
139139
"Please check your e-mail for a confirmation link.")
140140
} else if reqStatusCode == 400 {
141141
if string(reqBody) == "\"Username or email already exists\"" {

0 commit comments

Comments
 (0)