app/controllers/katello/api/v2/repositories_controller.rb in katello-3.15.0.rc1.1 vs app/controllers/katello/api/v2/repositories_controller.rb in katello-3.15.0.rc1.2

- old
+ new

@@ -33,13 +33,13 @@ end def_param_group :repo do param :url, String, :desc => N_("repository source url") param :gpg_key_id, :number, :desc => N_("id of the gpg key that will be assigned to the new repository") - param :ssl_ca_cert_id, :number, :desc => N_("Idenifier of the SSL CA Cert") - param :ssl_client_cert_id, :number, :desc => N_("Identifier of the SSL Client Cert") - param :ssl_client_key_id, :number, :desc => N_("Identifier of the SSL Client Key") + param :ssl_ca_cert_id, :number, :desc => N_("Identifier of the content credential containing the SSL CA Cert") + param :ssl_client_cert_id, :number, :desc => N_("Identifier of the content credential containing the SSL Client Cert") + param :ssl_client_key_id, :number, :desc => N_("Identifier of the content credential containing the SSL Client Key") param :unprotected, :bool, :desc => N_("true if this repository can be published via HTTP") param :checksum_type, String, :desc => N_("Checksum of the repository, currently 'sha1' & 'sha256' are supported") param :docker_upstream_name, String, :desc => N_("Name of the upstream docker repository") param :docker_tags_whitelist, Array, :desc => N_("Comma separated list of tags to sync for Container Image repository") param :download_policy, ["immediate", "on_demand", "background"], :desc => N_("download policy for yum repos (either 'immediate', 'on_demand', or 'background')") @@ -215,9 +215,13 @@ def create repo_params = repository_params unless RepositoryTypeManager.creatable_by_user?(repo_params[:content_type]) msg = _("Invalid params provided - content_type must be one of %s") % RepositoryTypeManager.creatable_repository_types.keys.join(",") fail HttpErrors::UnprocessableEntity, msg + end + + if repo_params['content_type'] == "puppet" || repo_params['content_type'] == "ostree" + ::Foreman::Deprecation.api_deprecation_warning("Puppet and OSTree will no longer be supported in Katello 3.16") end gpg_key = get_content_credential(repo_params, CONTENT_CREDENTIAL_GPG_KEY_TYPE) ssl_ca_cert = get_content_credential(repo_params, CONTENT_CREDENTIAL_SSL_CA_CERT_TYPE) ssl_client_cert = get_content_credential(repo_params, CONTENT_CREDENTIAL_SSL_CLIENT_CERT_TYPE)