small bug

This commit is contained in:
kenna-bmcdevitt 2020-10-29 01:44:45 -05:00
parent 335831687c
commit 1572405c05

View file

@ -40,7 +40,7 @@ rpm_auditer = RhelRpmToCve.new(filepath: data_file)
rhel_api_client = RhelSecurityApiClient.new rhel_api_client = RhelSecurityApiClient.new
if xmlpkg_name if xmlpkg_name
json = rpm_auditer.cves_per_pkg_name(pkg_name).to_json json = rpm_auditer.cves_per_pkg_name(xmlpkg_name).to_json
puts JSON.pretty_generate(JSON.parse(json)) puts JSON.pretty_generate(JSON.parse(json))
elsif pkg_name elsif pkg_name
params = { params: { package: pkg_name } } params = { params: { package: pkg_name } }