Bug 1240974 - Need "like" support in beaker client
Summary: Need "like" support in beaker client
Keywords:
Status: CLOSED DUPLICATE of bug 1010355
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: develop
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-08 09:28 UTC by gaoshang
Modified: 2015-08-24 06:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-24 06:44:25 UTC
Embargoed:


Attachments (Terms of Use)

Description gaoshang 2015-07-08 09:28:34 UTC
Description of problem:

In beaker Job XML, operator "like" is supported, such as <hostname op="like" value="%.khw.%"/>
But looks like breaker api/cli is not supported, could you help us to check this, thanks.

In /usr/lib/python2.6/site-packages/bkr/client/_init_.py
...
p2 = re.compile(r'([\!=<>]+|>|<)')

origin issue: https://projects.engineering.redhat.com/browse/CID-333


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Dan Callaghan 2015-08-24 06:00:20 UTC
Note that you can already (since 0.17) pass raw XML to --hostrequire:

bkr workflow-simple --hostrequire '<hostname op="like" value="%.khw.%"/>' ...

Comment 2 Dan Callaghan 2015-08-24 06:44:25 UTC

*** This bug has been marked as a duplicate of bug 1010355 ***


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