Bug 975428 - RFE: support wildcard characters in bkr distros-tag --name syntax
RFE: support wildcard characters in bkr distros-tag --name syntax
Status: CLOSED NOTABUG
Product: Beaker
Classification: Community
Component: command line (Show other bugs)
0.12
Unspecified Unspecified
high Severity high (vote)
: ---
: ---
Assigned To: beaker-dev-list
tools-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-18 09:01 EDT by Alexander Todorov
Modified: 2013-06-18 18:09 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-18 18:09:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alexander Todorov 2013-06-18 09:01:55 EDT
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 09:55:00 EDT
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 18:09:25 EDT
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.