app/lib/actions/katello/repository/update.rb in katello-3.18.5 vs app/lib/actions/katello/repository/update.rb in katello-4.0.0.rc1
- old
+ new
@@ -12,17 +12,9 @@
repo_params[:url] = nil if repo_params[:url] == ''
update_cv_cert_protected = repo_params.key?(:unprotected) && (repo_params[:unprotected] != repository.unprotected)
root.update!(repo_params)
- if root.download_policy == ::Runcible::Models::YumImporter::DOWNLOAD_BACKGROUND
- ::Foreman::Deprecation.api_deprecation_warning("Background download_policy will be removed in Katello 4.0. 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 4.0.")
- end
-
if update_content?(repository)
content = root.content
plan_action(::Actions::Candlepin::Product::ContentUpdate,
:owner => repository.organization.label,