Skip to content

Commit 92855da

Browse files
committed
fixes issue intel#413
1 parent ca4b4f5 commit 92855da

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cve_bin_tool/csv2cve.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,14 @@ def csv2cve(filename):
7171
)
7272
cves = cvedb.get_cves(row["vendor"], row["product"], row["version"])
7373
if cves:
74-
LOGGER.info("\n".join(sorted(cves.keys())))
75-
cveoutput.append(cves.keys())
74+
s = map(
75+
lambda key: " ".join(
76+
[row["vendor"], row["product"], row["version"], key, cves[key]]
77+
),
78+
sorted(cves.keys()),
79+
)
80+
LOGGER.info("\n".join(s))
81+
cveoutput.append(cves)
7682
else:
7783
LOGGER.debug("No CVEs found. Is the vendor/product info correct?")
7884
LOGGER.debug("")

0 commit comments

Comments
 (0)