app/views/katello/api/v2/hosts/host_collections.json.rabl in katello-4.12.0 vs app/views/katello/api/v2/hosts/host_collections.json.rabl in katello-4.12.1
- old
+ new
@@ -1,3 +1,7 @@
child :host_collections => :host_collections do
- attributes :id, :name, :description, :max_hosts, :unlimited_hosts, :total_hosts
+ attributes :id, :name, :description, :max_hosts, :unlimited_hosts
+
+ node :total_hosts do |host_collection|
+ host_collection.total_hosts(cached: true)
+ end
end