Sha256: fdf6374702baf0d1f1a91a77f1096169bbe9915c7c712538ba8c3d4aaf378d05

Contents?: true

Size: 578 Bytes

Versions: 42

Compression:

Stored size: 578 Bytes

Contents

module Actions
  module Katello
    module Host
      class RecalculateErrataStatus < Actions::Base
        middleware.use Actions::Middleware::KeepCurrentUser

        def run
          ::Host.unscoped.find_each do |host|
            begin
              host.content_facet.update_errata_status if host.content_facet.try(:uuid)
            rescue StandardError => error
              output[:errors] ||= []
              output[:errors] << (_("Error refreshing status for %s: ") % host.name) + error.message
            end
          end
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
katello-3.9.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.9.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.8.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.9.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.9.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.7.1.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.7.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.8.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.8.0.rc3 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.8.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.7.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.8.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.7.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.7.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.5.2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.6.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.6.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.6.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.5.1.1 app/lib/actions/katello/host/recalculate_errata_status.rb