diff --git a/app/controllers/katello/api/v2/activation_keys_controller.rb b/app/controllers/katello/api/v2/activation_keys_controller.rb index 0c21fe7bc9a..e9d45fb92d6 100644 --- a/app/controllers/katello/api/v2/activation_keys_controller.rb +++ b/app/controllers/katello/api/v2/activation_keys_controller.rb @@ -256,14 +256,13 @@ def index_relation def subscription_index subs = @activation_key.subscriptions - subscriptions = { + { :results => subs, :subtotal => subs.count, :total => subs.count, :page => 1, :per_page => subs.count, } - subscriptions end def find_environment diff --git a/app/models/katello/host/content_facet.rb b/app/models/katello/host/content_facet.rb index 20c904b39ec..e65d22c477b 100644 --- a/app/models/katello/host/content_facet.rb +++ b/app/models/katello/host/content_facet.rb @@ -1,5 +1,6 @@ module Katello module Host + # rubocop:disable Metrics/ClassLength class ContentFacet < Katello::Model audited :associated_with => :host self.table_name = 'katello_content_facets'