Merge pull request #751 from dotcloud/660-auth_client-feature

* Registry: Move auth to the client
This commit is contained in:
Guillaume J. Charmes 2013-06-13 11:52:40 -07:00
commit 7c76c4689d

View file

@ -473,10 +473,7 @@ type Registry struct {
authConfig *auth.AuthConfig
}
func NewRegistry(root string) *Registry {
// If the auth file does not exist, keep going
authConfig, _ := auth.LoadConfig(root)
func NewRegistry(root string, authConfig *auth.AuthConfig) *Registry {
httpTransport := &http.Transport{
DisableKeepAlives: true,
Proxy: http.ProxyFromEnvironment,