Switch to jobs_re for config setting

To avoid confusion, switch everything to use jobs_re for recheckwatch
config.

Change-Id: I1a84db6ec346a32f38e00560c1b322e7d377d434
Needed-By: I1e2369225c9bd83296684af0dd9ea0514d9098c4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-07 13:52:23 -04:00
parent 06f2fd6a6a
commit 1af432d0a5
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ channel_config=/home/mtreinish/elasticRecheck/recheckwatchbot.yaml
[recheckwatch]
#Any project that has a job that matches this regex will have all their
#jobs included in the recheck algorithm
jobs_regex=dsvm
jobs_re=dsvm
ci_username=jenkins
[gerrit]

View File

@ -100,7 +100,7 @@ class Config(object):
'db_uri': DB_URI,
'server_password': None,
'ci_username': CI_USERNAME,
'jobs_regex': JOBS_RE,
'jobs_re': JOBS_RE,
'pidfile': PID_FN,
'index_format': DEFAULT_INDEX_FORMAT,
'query_file': GERRIT_QUERY_FILE,
@ -117,7 +117,7 @@ class Config(object):
if config.has_section('recheckwatch'):
self.ci_username = config.get('recheckwatch', 'ci_username')
self.jobs_regex = config.get('recheckwatch', 'jobs_regex')
self.jobs_re = config.get('recheckwatch', 'jobs_re')
if config.has_section('gerrit'):
self.gerrit_user = config.get('gerrit', 'user')