Sha256: 6d7f7a3631b4444661ad2b7ada0dcc8b1d19e5b16f58db93328475c6fbb5855a
Contents?: true
Size: 727 Bytes
Versions: 20
Compression:
Stored size: 727 Bytes
Contents
child :subscription_facet => :subscription_facet_attributes do |facet| extends 'katello/api/v2/subscription_facet/base' consumer = Katello::Candlepin::Consumer.new(facet.uuid, facet.host.organization.label) node :compliance_reasons do consumer.compliance_reasons end node :virtual_host do |_subscription_facet| if (host = consumer.virtual_host) {:name => host.name, :id => host.id} end end node :virtual_guests do |_subscription_facet| consumer.virtual_guests.map do |guest| {:name => guest.name, :id => guest.id} end end node :installed_products do consumer.installed_products end child :activation_keys => :activation_keys do attributes :id, :name end end
Version data entries
20 entries across 20 versions & 1 rubygems