Bug #16931
closedbetter handle pools with missing subscription ids when listing akeys
Description
If for some reason a pool is not properly indexed and is missing its associated subscription, listing activation keys will fail with:
2016-10-06 17:39:52 [app] [E] NoMethodError: undefined method `products' for nil:NilClass | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/activation_key.rb:103:in `block in products' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/activation_key.rb:102:in `each' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/activation_key.rb:102:in `products' | /opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.11.6/lib/rabl/helpers.rb:14:in `data_object'
we should handle this better
Updated by The Foreman Bot about 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6396 added
Updated by Justin Sherrill about 8 years ago
- Translation missing: en.field_release set to 197
Updated by Justin Sherrill about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|c07d3e215f4abf55831cb1c61ab1cb654d94caff.