app/models/katello/host/info_provider.rb in katello-4.3.1 vs app/models/katello/host/info_provider.rb in katello-4.4.0.rc1
- old
+ new
@@ -14,9 +14,18 @@
}
if host.content_facet.present?
info['parameters']['kickstart_repository'] = host.content_facet.kickstart_repository.try(:label)
end
+
+ if (rhsm_url = host.content_source&.rhsm_url)
+ info['parameters']['rhsm_url'] = rhsm_url.to_s
+ end
+
+ if (content_url = host.content_source&.pulp_content_url)
+ info['parameters']['content_url'] = content_url.to_s
+ end
+
info
end
def content_view_info
return {} if host.content_view.blank?