Skip to content
Snippets Groups Projects
Verified Commit 37607088 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

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

Related T989
parent 8ad70b3d
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment