lister_transports: requests credentials are a tuple (username, password)

This commit is contained in:
Nicolas Dandrimont 2017-09-04 17:10:17 +02:00
parent 7c6ac9df0d
commit eb47600461

View file

@ -73,7 +73,7 @@ class SWHListerHttpTransport(abc.ABC):
creds = self.config['credentials']
auth = random.choice(creds) if creds else None
if auth:
params['auth'] = auth
params['auth'] = (auth['username'], auth['password'])
try:
return self.session.get(self.api_baseurl + path, **params)
except requests.exceptions.ConnectionError as e: