Skip to content

Commit

Permalink
Refs #38055 - Update app/lib/katello/resources/candlepin/product.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Partha Aji <[email protected]>
  • Loading branch information
jeremylenz and parthaa committed Dec 4, 2024
1 parent 8e2423d commit 6c0d720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/katello/resources/candlepin/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module Candlepin
class Product < CandlepinResource
class << self
def all(owner_label, included = [])
products = JSON.parse(Candlepin::CandlepinResource.get(path(owner_label) + "?active=include&#{included_list(included)}", self.default_headers).body)
url = path(owner_label) + "?active=include" + "&#{included_list(included)}"
products = JSON.parse(Candlepin::CandlepinResource.get(url, self.default_headers).body)
::Katello::Util::Data.array_with_indifferent_access products
end

Expand Down

0 comments on commit 6c0d720

Please sign in to comment.