Description of problem:
Running the following command:
hammer content-view puppet-module list --content-view-id 1
on a content view that doesn't include any puppet modules returns:
Couldn't find Katello::ContentView with 'id'=1 [WHERE "katello_content_views"."default" = 'f']
Version-Release number of selected component (if applicable):
The command should return an empty list, for example when listing filters of a filter-less content view:
hammer content-view filter list --content-view-id 1
FILTER ID | NAME | TYPE | INCLUSION
update: the above only applies for the default content view, other views behave as expected. Still, some user-friendly message would be nice.
The "Couldn't find..." message also appears when attempting to add a puppet module to the default CV, and when searching a CV with invalid ID
Created redmine issue http://projects.theforeman.org/issues/16350 from this bug
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.