mirror of https://github.com/docker/cli.git
defaultIndexserver -> defaultIndexServer
Signed-off-by: Jake Sanders <jsand@google.com>
This commit is contained in:
parent
1d0a37c460
commit
e1b607a351
|
@ -19,7 +19,7 @@ const (
|
||||||
// This constant is only used for really old config files when the
|
// This constant is only used for really old config files when the
|
||||||
// URL wasn't saved as part of the config file and it was just
|
// URL wasn't saved as part of the config file and it was just
|
||||||
// assumed to be this value.
|
// assumed to be this value.
|
||||||
defaultIndexserver = "https://index.docker.io/v1/"
|
defaultIndexServer = "https://index.docker.io/v1/"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfigFile ~/.docker/config.json file info
|
// ConfigFile ~/.docker/config.json file info
|
||||||
|
@ -87,8 +87,8 @@ func (configFile *ConfigFile) LegacyLoadFromReader(configData io.Reader) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
authConfig.ServerAddress = defaultIndexserver
|
authConfig.ServerAddress = defaultIndexServer
|
||||||
configFile.AuthConfigs[defaultIndexserver] = authConfig
|
configFile.AuthConfigs[defaultIndexServer] = authConfig
|
||||||
} else {
|
} else {
|
||||||
for k, authConfig := range configFile.AuthConfigs {
|
for k, authConfig := range configFile.AuthConfigs {
|
||||||
authConfig.Username, authConfig.Password, err = decodeAuth(authConfig.Auth)
|
authConfig.Username, authConfig.Password, err = decodeAuth(authConfig.Auth)
|
||||||
|
|
Loading…
Reference in New Issue