removes the error when tls is configured for https but http is tried first
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
		@@ -323,10 +323,6 @@ func (c *criService) registryHosts(auth *runtime.AuthConfig) docker.RegistryHost
 | 
				
			|||||||
				config    = c.config.Registry.Configs[u.Host]
 | 
									config    = c.config.Registry.Configs[u.Host]
 | 
				
			||||||
			)
 | 
								)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if u.Scheme != "https" && config.TLS != nil {
 | 
					 | 
				
			||||||
				return nil, errors.Errorf("tls provided for http endpoint %q", e)
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			if config.TLS != nil {
 | 
								if config.TLS != nil {
 | 
				
			||||||
				transport.TLSClientConfig, err = c.getTLSConfig(*config.TLS)
 | 
									transport.TLSClientConfig, err = c.getTLSConfig(*config.TLS)
 | 
				
			||||||
				if err != nil {
 | 
									if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user