From 9cfe0e866e367baf596564fe050335e631dad26f Mon Sep 17 00:00:00 2001 From: YOUR NAME Date: Tue, 5 Mar 2024 10:42:24 -0500 Subject: [PATCH] Remove katello agent and subscription status from report slice --- lib/foreman_inventory_upload/generators/slice.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/foreman_inventory_upload/generators/slice.rb b/lib/foreman_inventory_upload/generators/slice.rb index de1d412a..eaaf58be 100644 --- a/lib/foreman_inventory_upload/generators/slice.rb +++ b/lib/foreman_inventory_upload/generators/slice.rb @@ -126,11 +126,9 @@ def report_system_profile(host, host_ips_cache) ) { |v| os_release_value(*v) } @stream.simple_field('os_kernel_version', fact_value(host, 'uname::release')) @stream.simple_field('arch', host.architecture&.name) - @stream.simple_field('subscription_status', host.subscription_status_label) - @stream.simple_field('katello_agent_running', false) @stream.simple_field( 'infrastructure_type', - ActiveModel::Type::Boolean.new.cast(fact_value(host, 'virt::is_guest')) ? 'virtual' : 'physical' + ActiveModel::Type::Boolean.new.cast(fact_value(host, 'virt::is_guest')) ? 'virtual' : 'physical' ) @stream.simple_field('cloud_provider', cloud_provider(host)) unless (installed_products = host.subscription_facet&.installed_products).empty?