Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1404841

Summary: [RFE] spacewalk-remove-channel accepts removing channels by pattern matching
Product: [Community] Spacewalk Reporter: Pavel Studeník <pstudeni>
Component: ClientsAssignee: Jiří Dostál <jdostal>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.6CC: eherget, jdostal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-27 19:31:00 UTC 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:
Bug Depends On:    
Bug Blocks: 1484117    

Description Pavel Studeník 2016-12-14 19:27:40 UTC
Description of problem:
I would like to remove more channels than one by only command spacewalk-remove-channel. For example I have many old Fedora's channels and I want to remove all fedora1* (fedora18, fedora17,...). Now, I need to write new API script or use cycle in bash for spacewalk-remove-channel.

I think that good way to use "Unix filename pattern matching", that accepts

* 	matches everything
? 	matches any single character
[seq] 	matches any character in seq
[!seq] 	matches any character not in seq

https://docs.python.org/2/library/fnmatch.html

Actual results:
>> spacewalk-remove-channel -a fedora1*

Expected results:
>> spacewalk-remove-channel -a fedora1*

Comment 1 Pavel Studeník 2016-12-14 19:30:19 UTC
I created pull request https://github.com/spacewalkproject/spacewalk/pull/496

Comment 2 Jiří Dostál 2017-03-24 10:45:44 UTC
PR accepted as 274178d98ed9a8b543ed5ab34336160d37d478bf in spacewalk master.

Comment 3 Eric Herget 2017-09-27 19:31:00 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27