diff --git a/security_tools/redhat_tools/rpm_pkg_audit.rb b/security_tools/redhat_tools/rpm_pkg_audit.rb index f05faf8..11eb5bc 100755 --- a/security_tools/redhat_tools/rpm_pkg_audit.rb +++ b/security_tools/redhat_tools/rpm_pkg_audit.rb @@ -40,7 +40,7 @@ rpm_auditer = RhelRpmToCve.new(filepath: data_file) rhel_api_client = RhelSecurityApiClient.new 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)) elsif pkg_name params = { params: { package: pkg_name } }