app/views/katello/api/v2/capsule_content/sync_status.json.rabl in katello-3.11.2 vs app/views/katello/api/v2/capsule_content/sync_status.json.rabl in katello-3.12.0.rc1

- old
+ new

@@ -1,6 +1,6 @@ -object @capsule_content +object @capsule attribute :last_sync_time child :active_sync_tasks => :active_sync_tasks do extends 'foreman_tasks/api/tasks/show' @@ -13,19 +13,19 @@ extends 'katello/api/v2/common/identifier' extends 'katello/api/v2/common/org_reference' attributes :library node :syncable do |env| - @capsule_content.environment_syncable?(env) + @capsule.environment_syncable?(env) end node :counts do |env| counts = { :content_hosts => env.hosts.authorized("view_hosts").count, :content_views => env.content_views.non_default.count, :products => env.products.enabled.count } - repo_data = @capsule_content.current_repositories_data(env) + repo_data = @capsule.smart_proxy_service.current_repositories_data(env) counts.merge!(Katello::Pulp::ContentCountsCalculator.new(repo_data).calculate) end node :content_views do |env| env.content_views.map do |content_view| @@ -38,10 +38,10 @@ :counts => { :content_hosts => content_view.hosts.authorized("view_hosts").count, :products => content_view.products.enabled.count } } - repo_data = @capsule_content.current_repositories_data(env, content_view) + repo_data = @capsule.smart_proxy_service.current_repositories_data(env, content_view) attributes[:counts].merge!(Katello::Pulp::ContentCountsCalculator.new(repo_data).calculate) attributes end end end