core/lister: Make the tasks take an explicit lister_args argument

Avoid eating *all* arbitrary arguments and passing them along to the
new_lister method.
This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-17 13:56:36 +02:00
parent d08ab241f5
commit d88f1b60c9
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
6 changed files with 41 additions and 37 deletions

View file

@ -10,8 +10,8 @@ from .lister import GitHubLister
class GitHubListerTask(ListerTaskBase):
def new_lister(self):
return GitHubLister(api_baseurl='https://api.github.com')
def new_lister(self, *, api_baseurl='https://api.github.com'):
return GitHubLister(api_baseurl=api_baseurl)
class IncrementalGitHubLister(GitHubListerTask, IndexingDiscoveryListerTask):