Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9312739
D1588.id5284.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D1588.id5284.diff
View Options
diff --git a/swh/lister/gitlab/lister.py b/swh/lister/gitlab/lister.py
--- a/swh/lister/gitlab/lister.py
+++ b/swh/lister/gitlab/lister.py
@@ -2,7 +2,6 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
-import random
import time
from urllib3.util import parse_url
@@ -28,34 +27,6 @@
self.PATH_TEMPLATE = '%s&per_page=%s' % (
self.PATH_TEMPLATE, per_page)
- def request_params(self, identifier):
- """Get the full parameters passed to requests given the
- transport_request identifier.
-
- For the gitlab lister, the 'credentials' entries is configured
- per instance. For example::
-
- - credentials:
- - gitlab.com:
- - username: user0
- password: <pass>
- - username: user1
- password: <pass>
- - ...
- - other-gitlab-instance:
- ...
-
- """
- params = {
- 'headers': self.request_headers() or {}
- }
- creds_lister = self.config['credentials'].get(self.instance)
- if creds_lister:
- auth = random.choice(creds_lister)
- if auth:
- params['auth'] = (auth['username'], auth['password'])
- return params
-
def uid(self, repo):
return '%s/%s' % (self.instance, repo['path_with_namespace'])
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 2, 11:06 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3219994
Attached To
D1588: phabricator.lister: Use credentials setup from config file
Event Timeline
Log In to Comment