Sha256: 3079d2f1a11ce4d7eb32b520423201c2ba3bd4fc306d853f70720af85bdebe97
Contents?: true
Size: 650 Bytes
Versions: 144
Compression:
Stored size: 650 Bytes
Contents
module Actions module Katello module Repository class CorrectChecksum < Actions::Base def plan(repo) plan_self(:repo_id => repo.id) end def finalize ::User.current = ::User.anonymous_admin root = ::Katello::Repository.find(input[:repo_id]).root if root.pulp_scratchpad_checksum_type && root.pulp_scratchpad_checksum_type != root.source_repo_checksum_type root.source_repo_checksum_type = root.pulp_scratchpad_checksum_type root.save! end ensure ::User.current = nil end end end end end
Version data entries
144 entries across 144 versions & 1 rubygems