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

Version Path
katello-4.7.6 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.5 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.4 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.3 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.6.2.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.6.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.0 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.6.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.7.0.rc1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.4.2.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.4.2.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.4.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.5.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.6.0 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.6.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.6.0.rc1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.5.0 app/lib/actions/katello/repository/correct_checksum.rb