Sha256: 380b504c2c3e62a304d2c22076ead81cf246dcf2f9c3406738c7f075098ec895

Contents?: true

Size: 475 Bytes

Versions: 137

Compression:

Stored size: 475 Bytes

Contents

module Actions
  module Katello
    module Host
      class RecalculateErrataStatus < Actions::Base
        def run
          ::Host.unscoped.find_each do |host|
            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

Version data entries

137 entries across 137 versions & 1 rubygems

Version Path
katello-4.14.3 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.14.2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.15.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.15.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.15.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.14.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.14.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.14.0.rc3 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.14.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.14.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.13.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.13.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.12.1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.13.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.12.0 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.12.0.rc3 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.12.0.rc2 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.12.0.rc1 app/lib/actions/katello/host/recalculate_errata_status.rb
katello-4.11.1 app/lib/actions/katello/host/recalculate_errata_status.rb