-
Bug
-
Resolution: Done
-
Normal
-
6.15.z
-
1
-
False
-
rubygem-hammer_cli_katello-1.19.0-0.1.pre.main.20250826082937gitb9ffbec.el9sat.noarch
-
Moderate
-
Artemis Sprint 154
-
sat-artemis
-
None
-
None
-
None
-
Automated
Description of problem: Hammer command of module filter does not shows module-filter-id of modules.
How reproducible:
Execute below command in satellite to retrieve the information of module filter from Content View.
Steps to Reproduce:
1. Log Into Satellite Cli
2. Execute below command in Satellite cli
- hammer content-view filter rule info --content-view-filter-id 33 --id 4
3. Above command does not shows module-filter-ID
Actual behavior:
As checked in test satellite it only shows the module name which got excluded or included as per filter applied but not module-stream-id.
~~~
- hammer content-view filter rule info --content-view-filter-id 33 --id 4{{Rule ID: 4
Filter ID: 33
Name: test*
Created: 2024/06/05 06:11:05
Updated: 2024/06/05 06:11:05}}
~~~
Expected behavior:
It should shows the Module-stream-id as well, but this can achieved by below API endpoints
~~~
curl --request GET --insecure --user <replace with the satellite admin user>:<replace with the admin user password> https://<your satellite fqdn/katello/api/content_view_filters/<replace with the content view filter id>/rules/| json_reformat
~~~
This will shows output as below which clearly shows module-stream-id -:
{ "total": 2, "subtotal": 2, "selectable": 2, "page": 1, "per_page": 20, "error": null, "search": null, "sort":
, "results": [ { "content_view_filter_id": 16, "module_stream_id": 145927, "id": 2, "created_at": "2024-06-12 22:59:55 UTC", "updated_at": "2024-06-12 22:59:55 UTC" }, { "content_view_filter_id": 16, "module_stream_id": 71543, "id": 3, "created_at": "2024-06-12 22:59:55 UTC", "updated_at": "2024-06-12 22:59:55 UTC" } ] }
Business Impact / Additional info: