add cve_count in output hash

This commit is contained in:
kenna-bmcdevitt 2020-10-28 18:47:49 -05:00
parent 04d1f267ce
commit 04982707fb

View file

@ -24,9 +24,12 @@ class RhelRpmToCve
r.text r.text
end.compact end.compact
cves = results.map {|cve| cve}
{ {
:rhel_package_name => pkg_name, :rhel_package_name => pkg_name,
:cves => results.map {|cve| cve} :cves => cves,
:cve_count => cves.count
} }
else else
'Package not found.' 'Package not found.'