forked from toolshed/abra
		
	fix: handle empty image meta
This commit is contained in:
		@ -402,7 +402,11 @@ func GetImageMetadata(imageRowString, recipeName string) (image, error) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if len(imgFields) < 3 {
 | 
			
		||||
		if imageRowString != "" {
 | 
			
		||||
			logrus.Warnf("%s image meta has incorrect format: %s", recipeName, imageRowString)
 | 
			
		||||
		} else {
 | 
			
		||||
			logrus.Warnf("%s image meta is empty?", recipeName)
 | 
			
		||||
		}
 | 
			
		||||
		return img, nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user