Bug 975428 - RFE: support wildcard characters in bkr distros-tag --name syntax
Summary: RFE: support wildcard characters in bkr distros-tag --name syntax
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 0.12
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-18 13:01 UTC by Alexander Todorov
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-18 22:09:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Alexander Todorov 2013-06-18 13:01:55 UTC
Description of problem:

I've blindly used copy&paste while tagging a recent tree:


$ bkr distros-tag --name=RHEL5.10-*-20130613.0  RTT_ACCEPTED
Tagged the following distros with tag: RTT_ACCEPTED
------------------------------------------------------

which apparently doesn't work. While below does:


$ bkr distros-tag --name=RHEL5.10-Client-20130613.0  RTT_ACCEPTED
Tagged the following distros with tag: RTT_ACCEPTED
------------------------------------------------------
RHEL5.10-Client-20130613.0


$ bkr distros-tag --name=RHEL5.10-Server-20130613.0  RTT_ACCEPTED
Tagged the following distros with tag: RTT_ACCEPTED
------------------------------------------------------
RHEL5.10-Server-20130613.0

 

The wildcard syntax is how RTT marks the trees in our wiki status pages. Adding support for this will minimize mistakes on our side, thus requesting High priority.


Version-Release number of selected component (if applicable):
beaker-client-0.12.1-1.el6eng.noarch

How reproducible:
Always

Comment 1 Bill Peck 2013-06-18 13:55:00 UTC
The beaker devs can probably convert * to % which is the sql wild card.  But you can do this on your own too.  Just replace * above with % and it will work.

Comment 2 Dan Callaghan 2013-06-18 22:09:25 UTC
Using % as a wildcard is indeed supported and documented.

http://beaker-project.org/docs/man/bkr-distros-tag.html

--name <name>

    Limit to distros with the given name. <name> is interpreted as a SQL LIKE pattern (the % character matches any substring).


Note You need to log in before you can comment on or make changes to this bug.