swh.lister.gitlab: Make the lister's task instance parametric
Related T989
This commit is contained in:
parent
3760708897
commit
b84db26bee
2 changed files with 15 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue