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.2.0.1.rc3 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.18.5 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.2.0.1.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.2.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.3 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.2.0.rc1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.0.2.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.2.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.0.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.18.4 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.0 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.0.1.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.18.3.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.0.1.1 app/lib/actions/katello/repository/correct_checksum.rb
katello-3.18.3 app/lib/actions/katello/repository/correct_checksum.rb
katello-4.1.0.rc2 app/lib/actions/katello/repository/correct_checksum.rb