Actions
Bug #25407
closedKatello::Resources::Candlepin::Consumer.get not always returns HashWithIndifferentAccess
Difficulty:
Triaged:
Yes
Bugzilla link:
Description
ActiveSupport::HashWithIndifferentAccess
allows to access Hashes in Ruby by either 'string'
or :symbol
Katello::Resources::Candlepin::Consumer.get
will return a HashWithIndifferentAccess
when called with a String param, but will only return a regular Hash
when called with a Hash full of params.
As we use symbol-access in many places (like in Katello::Actions::Katello::Host::HypervisorsUpdate
), but the data comes from JSON.parse
originally, we should always map to HashWithIndifferentAccess
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7817 added
Updated by Justin Sherrill about 6 years ago
- Target version set to Katello 3.10.0
- Triaged changed from No to Yes
Updated by Evgeni Golov about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|8d3cad2f6ac393fff27f094972276405c8a0708f.
Updated by The Foreman Bot almost 6 years ago
- Pull request https://github.com/Katello/katello/pull/7872 added
Actions