libimage: pull: remove TODO
While in theory it would be optimal if the shortnames package returned such an error, there is no need for it in practice since others error sources such as an invalid input name would already error out before. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
		
							parent
							
								
									a113a2f687
								
							
						
					
					
						commit
						61ffc5a08a
					
				| 
						 | 
				
			
			@ -533,9 +533,6 @@ func (r *Runtime) copySingleImageFromRegistry(ctx context.Context, imageName str
 | 
			
		|||
	sys := r.systemContextCopy()
 | 
			
		||||
	resolved, err := shortnames.Resolve(sys, imageName)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		// TODO: that is a too big of a hammer since we should only
 | 
			
		||||
		// ignore errors that indicate that there's no alias and no
 | 
			
		||||
		// USRs.  Must be addressed in c/image first.
 | 
			
		||||
		if localImage != nil && pullPolicy == config.PullPolicyNewer {
 | 
			
		||||
			return []string{resolvedImageName}, nil
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue