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

Version Path
katello-3.7.1.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.7.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.8.0 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.8.0.rc3 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.8.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.7.0 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.8.0.rc1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.7.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.7.0.rc1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.5.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.6.0 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.6.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.6.0.rc1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.5.1.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.5.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.5.0.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.5.0 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.5.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.5.0.rc1 app/lib/actions/katello/repository/correct_checksum.rb