app/lib/actions/katello/host/upload_profiles.rb in katello-3.18.0.rc2 vs app/lib/actions/katello/host/upload_profiles.rb in katello-3.18.0.rc2.1
- old
+ new
@@ -58,10 +58,10 @@
updated_profiles.none? { |p| p[:name] == profile[:name] && p[:stream] == profile[:stream] }
end
module_stream_profile = updated_profiles + unassociated_profiles
- unless SmartProxy.pulp_primary&.pulp3_repository_type_support?(::Katello::Repository::YUM_TYPE)
+ if SmartProxy.pulp_primary&.has_feature?(SmartProxy::PULP_FEATURE)
unless module_stream_profile.empty?
begin
::Katello::Pulp::Consumer.new(host.content_facet.uuid).
upload_module_stream_profile(module_stream_profile)
rescue RestClient::ResourceNotFound