Sha256: 9a1b519d7e704dabd4d5864b50b972187709b8803c65d859acb28b9e71bd0dde

Contents?: true

Size: 592 Bytes

Versions: 74

Compression:

Stored size: 592 Bytes

Contents

namespace :katello do
  namespace :upgrades do
    namespace '4.2' do
      desc "Removed orphaned pools and correct org+subscription mismatch"
      task :remove_checksum_values => ["environment"] do
        api = Katello::Pulp3::Api::Yum.new(SmartProxy.pulp_primary)
        repos = Katello::Pulp3::Api::Core.fetch_from_list do |page_opts|
          api.repositories_api.list(page_opts)
        end

        repos.each do |repo|
          api.repositories_api.partial_update(repo.pulp_href, {metadata_checksum_type: nil, package_checksum_type: nil})
        end
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
katello-4.14.2 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.15.0 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.15.0.rc2 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.15.0.rc1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.14.1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.14.0 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.14.0.rc3 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.14.0.rc2 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.14.0.rc1.1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.14.0.rc1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.13.1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.13.0 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.12.1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.13.0.rc1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.12.0 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.12.0.rc3 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.12.0.rc2 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.12.0.rc1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.11.1 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake
katello-4.11.0 lib/katello/tasks/upgrades/4.2/remove_checksum_values.rake