app/lib/actions/katello/repository/update.rb in katello-3.13.4 vs app/lib/actions/katello/repository/update.rb in katello-3.14.0.rc1

- old
+ new

@@ -2,15 +2,24 @@ module Katello module Repository class Update < Actions::EntryAction include Actions::Katello::PulpSelector + # rubocop:disable Metrics/MethodLength def plan(root, repo_params) repository = root.library_instance action_subject root.library_instance repo_params[:url] = nil if repo_params[:url] == '' root.update_attributes!(repo_params) + + if root.download_policy == ::Runcible::Models::YumImporter::DOWNLOAD_BACKGROUND + ::Foreman::Deprecation.api_deprecation_warning("Background download_policy will be removed in Katello 3.16. Any background repositories will be converted to Immediate") + end + + if root['content_type'] == 'puppet' || root['content_type'] == 'ostree' + ::Foreman::Deprecation.api_deprecation_warning("Repository types of 'Puppet' and 'OSTree' will no longer be supported in Katello 3.16.") + end if update_content?(repository) content = root.content plan_action(::Actions::Candlepin::Product::ContentUpdate,