Fixes cross-repo blob mounting in the BlobUploadHandler
Accidentally checked for err != nil instead of err == nil :/ Also now ensures that only a non-nil option is appended to the create options slice Signed-off-by: Brian Bland <brian.bland@docker.com>master
							parent
							
								
									b38b9ba385
								
							
						
					
					
						commit
						e0d4a45c93
					
				| 
						 | 
				
			
			@ -127,7 +127,7 @@ func (buh *blobUploadHandler) StartBlobUpload(w http.ResponseWriter, r *http.Req
 | 
			
		|||
 | 
			
		||||
	if mountDigest != "" && fromRepo != "" {
 | 
			
		||||
		opt, err := buh.createBlobMountOption(fromRepo, mountDigest)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
		if opt != nil && err == nil {
 | 
			
		||||
			options = append(options, opt)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue