func()

in cli/io/config.go [193:210]


func (config *Config) adaptLegacyCredentialFormat() {
	auth, found := config.Map[authKey].(map[string]interface{})
	if !found {
		return
	}
	for url, credMap := range auth {
		creds := credMap.(map[string]interface{})
		var username, password string
		username, found := creds[usernameKey].(string)
		if found {
			password, found = creds[passwordKey].(string)
		}
		if found {
			credentials := base64.StdEncoding.EncodeToString([]byte(username + ":" + password))
			config.setCredential(url, credentials)
		}
	}
}