diff --git a/contrib/analyze-local-images/main.go b/contrib/analyze-local-images/main.go index 42af4de1..c619efea 100644 --- a/contrib/analyze-local-images/main.go +++ b/contrib/analyze-local-images/main.go @@ -281,7 +281,7 @@ func AnalyzeLocalImage(imageName string, minSeverity types.Priority, endpoint, m fmt.Printf("Clair report for image %s (%s)\n", imageName, time.Now().UTC()) } - if len(layer.Features) == 0 { + if len(layer.Features) == 0 && !jsonOutput { fmt.Printf("%s No features have been detected in the image. This usually means that the image isn't supported by Clair.\n", color.YellowString("NOTE:")) return nil }