lister: Unify credentials structure between listers
This becomes a dictionary of key <lister-name>, value a dict of key <instance-name>, value list of dict username/password. Related T1772
This commit is contained in:
parent
d6169c7141
commit
b81621274b
12 changed files with 56 additions and 31 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2017-2018 the Software Heritage developers
|
||||
# Copyright (C) 2017-2019 the Software Heritage developers
|
||||
# License: GNU General Public License version 3, or any later version
|
||||
# See top-level LICENSE file for more information
|
||||
|
||||
|
@ -17,6 +17,7 @@ class BitBucketLister(SWHIndexingHttpLister):
|
|||
PATH_TEMPLATE = '/repositories?after=%s'
|
||||
MODEL = BitBucketModel
|
||||
LISTER_NAME = 'bitbucket'
|
||||
instance = 'bitbucket'
|
||||
|
||||
def get_model_from_repo(self, repo):
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue