mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
Merge pull request #1372 from kubescape/fix-image-printer
Print up until 4 images in vulnerability summary
This commit is contained in:
@@ -215,7 +215,7 @@ func printImageScanningSummary(writer *os.File, summary imageprinter.ImageScanSu
|
||||
|
||||
if len(summary.Images) == 1 {
|
||||
cautils.SimpleDisplay(writer, "Image: %s\n", summary.Images[0])
|
||||
} else {
|
||||
} else if len(summary.Images) < 4 {
|
||||
cautils.SimpleDisplay(writer, "Images: %s\n", strings.Join(summary.Images, ", "))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user