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