diff --git a/lib/foreman_inventory_upload/generators/slice.rb b/lib/foreman_inventory_upload/generators/slice.rb index f745c727..4ee3ef80 100644 --- a/lib/foreman_inventory_upload/generators/slice.rb +++ b/lib/foreman_inventory_upload/generators/slice.rb @@ -147,7 +147,7 @@ def report_system_profile(host, host_ips_cache) @stream.array_field('installed_packages') do first = true host.installed_packages.each do |package| - @stream.raw("#{first ? '' : ', '}#{@stream.stringify_value(package.nvra)}") + @stream.raw("#{first ? '' : ', '}#{@stream.stringify_value(package.nvrea)}") first = false end end