swh.lister.gitlab: Make the lister's task instance parametric

Related T989
This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-03 15:26:41 +02:00
parent 3760708897
commit b84db26bee
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
2 changed files with 15 additions and 13 deletions

View file

@ -10,9 +10,10 @@ from .lister import GitLabLister
class GitLabDotComListerTask(ListerTaskBase):
def new_lister(self):
return GitLabLister(lister_name='gitlab.com',
api_baseurl='https://gitlab.com/api/v4')
def new_lister(self, lister_name='gitlab.com',
api_baseurl='https://gitlab.com/api/v4'):
return GitLabLister(
lister_name=lister_name, api_baseurl=api_baseurl)
class IncrementalGitLabDotComLister(GitLabDotComListerTask,