Allow queue regex specification

In the case where multiple gate queues exist and
are name gate-<name>, a regex gate* could be provided
without the quotes. Update the code to allow specifying a regex.

Change-Id: I24f43f64e71a87989a8dad8570e453a0bbd11402
This commit is contained in:
Ramy Asselin 2015-11-30 19:12:27 -08:00
parent a02717a8c0
commit 0c790354bd
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ def main():
parser.add_argument('-o', dest='output',
help='output filename. Omit for stdout')
parser.add_argument('-q', dest='queue',
help='limit results to a specific build queue')
help='limit results to a build queue regex')
parser.add_argument('-c', '--conf', help="Elastic Recheck Configuration "
"file to use for data_source options such as "
"elastic search url, logstash url, and database "
@ -156,7 +156,7 @@ def main():
for query in classifier.queries:
if args.queue:
query['query'] = query['query'] + (' AND build_queue:"%s"' %
query['query'] = query['query'] + (' AND build_queue:%s' %
args.queue)
if query.get('suppress-graph'):
continue