Skip to content

Commit

Permalink
Remove katello agent and subscription status from report slice
Browse files Browse the repository at this point in the history
  • Loading branch information
YOUR NAME committed Mar 5, 2024
1 parent 5236322 commit 9cfe0e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/foreman_inventory_upload/generators/slice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 9cfe0e8

Please sign in to comment.