Below is a snippet of the Applicable Errata Report Template, it lists packages but as names erratum.package_names.
How do I get names as well as versions? I can’t find any documentation on this here https://www.rubydoc.info/search/gems/katello
<%- host_applicable_errata_filtered(host, input('Errata filter')).each do |erratum| -%>
<%- report_row(
'Host': host.name,
'Operating System': host.operatingsystem,
'Environment': host.lifecycle_environment,
'Erratum': erratum.errata_id,
'Type': erratum.errata_type,
'Published': erratum.issued,
'Applicable since': erratum.created_at,
'Severity': erratum.severity,
'Packages': erratum.package_names,
'CVEs': erratum.cves.map { |c| c.cve_id },
'Reboot suggested': erratum.reboot_suggested,
) -%>