Sha256: 7dde551e90330efb4646da3303519216107da707d62f5380c236843e3738c42f
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
module Actions module Katello module Host class GenerateApplicability < Actions::Base middleware.use Actions::Middleware::KeepCurrentUser def plan(hosts) uuids = hosts.map { |host| host.content_facet.try(:uuid) }.compact unless uuids.empty? plan_action(Pulp::Consumer::GenerateApplicability, :uuids => uuids) plan_self(:host_ids => hosts.map(&:id)) end end def finalize input[:host_ids].each do |host_id| ::Katello::EventQueue.push_event(::Katello::Events::ImportHostErrata::EVENT_TYPE, host_id) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems