fix: handle empty image meta
This commit is contained in:
parent
a750344653
commit
033bad3d10
@ -402,7 +402,11 @@ func GetImageMetadata(imageRowString, recipeName string) (image, error) {
|
||||
}
|
||||
|
||||
if len(imgFields) < 3 {
|
||||
logrus.Warnf("%s image meta has incorrect format: %s", recipeName, imageRowString)
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user