add cve_count in output hash
This commit is contained in:
parent
04d1f267ce
commit
04982707fb
1 changed files with 4 additions and 1 deletions
|
@ -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.'
|
||||||
|
|
Loading…
Add table
Reference in a new issue