Sha256: c7a76b2fca7d145b30da3ecdd5a45b9bd7c7b07a03c05d65a021dc0df4c6d76c
Contents?: true
Size: 598 Bytes
Versions: 66
Compression:
Stored size: 598 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 repo = ::Katello::Repository.find(input[:repo_id]) found_checksum = repo.pulp_checksum_type if found_checksum && repo.checksum_type != found_checksum repo.checksum_type = found_checksum repo.save! end ensure ::User.current = nil end end end end end
Version data entries
66 entries across 66 versions & 1 rubygems