swh.lister.gitlab: Use one configuration for the gitlab lister

Related T989
This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-04 14:50:41 +02:00
parent 8ad70b3d60
commit 3760708897
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -22,6 +22,14 @@ class GitLabLister(SWHIndexingHttpLister):
# (method disable_deleted_repo_tasks)
MODEL = GitLabModel
@property
def CONFIG_BASE_FILENAME(self):
"""One gitlab lister for all instances. We discriminate between the
origin on a per instance basis in the table.
"""
return 'lister-gitlab'
@property
def ADDITIONAL_CONFIG(self):
"""Override additional config as the 'credentials' structure change
@ -32,7 +40,7 @@ class GitLabLister(SWHIndexingHttpLister):
"""
return {
'lister_db_url':
('str', 'postgresql:///lister-%s' % self.lister_name),
('str', 'postgresql:///lister-gitlab'),
'credentials': # credentials is a dict
('dict', {}),
'cache_responses':