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 authored Dec 4, 2024
1 parent 8e2423d commit acca93a
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)}"

Check failure on line 7 in app/lib/katello/resources/candlepin/product.rb

View workflow job for this annotation

GitHub Actions / Rubocop / Rubocop

Layout/IndentationWidth: Use 2 (not 1) spaces for indentation.
products = JSON.parse(Candlepin::CandlepinResource.get(url, self.default_headers).body)

Check failure on line 8 in app/lib/katello/resources/candlepin/product.rb

View workflow job for this annotation

GitHub Actions / Rubocop / Rubocop

Layout/IndentationConsistency: Inconsistent indentation detected.
::Katello::Util::Data.array_with_indifferent_access products

Check failure on line 9 in app/lib/katello/resources/candlepin/product.rb

View workflow job for this annotation

GitHub Actions / Rubocop / Rubocop

Layout/IndentationConsistency: Inconsistent indentation detected.
end

Expand Down

0 comments on commit acca93a

Please sign in to comment.