Skip to content

Commit

Permalink
Refs #29540 - remove deprecation warning from create.rb and update.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Apr 29, 2020
1 parent 9e65b13 commit 71455fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions app/lib/actions/katello/repository/create.rb
Expand Up @@ -10,10 +10,6 @@ def plan(repository, clone = false, plan_create = false)

action_subject(repository)

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

org = repository.organization
pulp2_create_action = plan_create ? Actions::Pulp::Repository::CreateInPlan : Actions::Pulp::Repository::Create
sequence do
Expand Down
4 changes: 0 additions & 4 deletions app/lib/actions/katello/repository/update.rb
Expand Up @@ -12,10 +12,6 @@ def plan(root, repo_params)
repo_params[:url] = nil if repo_params[:url] == ''
root.update!(repo_params)

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

Expand Down

0 comments on commit 71455fa

Please sign in to comment.