app/models/katello/host/info_provider.rb in katello-4.14.1 vs app/models/katello/host/info_provider.rb in katello-4.15.0.rc1

- old
+ new

@@ -1,14 +1,12 @@ -require 'host_info' - module Katello module Host class InfoProvider < ::HostInfo::Provider def host_info info = {} info['parameters'] = { - 'foreman_host_collections' => host.host_collections.map(&:name) + 'foreman_host_collections' => host.host_collections.map(&:name), } if host.content_facet.present? info['parameters']['kickstart_repository'] = host.content_facet.kickstart_repository.try(:label) if host.single_content_view_environment? @@ -43,10 +41,10 @@ { 'label' => content_view.try(:label), 'latest-version' => content_view.try(:latest_version), 'version' => content_version(content_view_environment).try(:version), 'published' => content_version(content_view_environment).try(:created_at).try(:time).to_s, - 'components' => content_view_components(content_view_environment) + 'components' => content_view_components(content_view_environment), } end def content_view_components(content_view_environment) return {} unless content_view_environment.content_view.try(:composite)