Sha256: 99ab94434677f0d823a859ee67eff971296dd1aaf78f2b3937b28e3abbfd7efc

Contents?: true

Size: 517 Bytes

Versions: 41

Compression:

Stored size: 517 Bytes

Contents

module Actions
  module Katello
    module Host
      class RecalculateErrataStatus < Actions::Base
        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

41 entries across 41 versions & 1 rubygems

Version Path
katello-3.15.3.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.3 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.1.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.0.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.0.rc1.3 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.0.rc1.2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.0.rc1.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.15.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.14.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.13.4 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.14.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.13.3 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.14.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.13.2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.14.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-3.13.1 app/lib/actions/katello/host/recalculate_errata_status.rb