Bug 2208557

Summary: While creating modulemd filter for content view via ansible playbook getting error traceback.
Product: Red Hat Satellite Reporter: vivek singh <vivsingh>
Component: Ansible CollectionAssignee: Evgeni Golov <egolov>
Status: MODIFIED --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: egolov
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-collection-redhat-satellite-3.11.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vivek singh 2023-05-19 14:09:56 UTC
Description :- While creating modulemd filter for content view via ansible playbook getting error traceback. 

Version-Release number of selected component (if applicable):6.13.0

How reproducible: always 

Steps to Reproduce: 
1- Install ansible-collection on satellite -->  ansible-galaxy collection install redhat.satellite:3.10.0 

2- create playbook with following content as per document --> https://console.redhat.com/ansible/automation-hub/repo/published/redhat/satellite/content/module/content_view_filter/?version=3.10.0 

3- Run playbook from CLI or satellite. 

4- Run traceback will give you error but modulemd filter is created on satellite with no rules.  

Actual results: Playbook giving error and also creating filter  .


Expected results: Playbook should run without any error. 

Additional info: Note- In the release notes of this version:

https://github.com/RedHatSatellite/satellite-ansible-collection/blob/develop/CHANGELOG.rst#v3-10-0

It is written:

* content_view_filter - add support for creating modulemd filters