mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
initialize the auth handler with all configured credentials, so it is now
possible to use osc with different api servers by overriding apisrv on the command line
This commit is contained in:
parent
2f5b52e92c
commit
36e4cc3140
@ -149,7 +149,8 @@ def init_basicauth(config):
|
||||
|
||||
# with None as first argument, it will always use this username/password
|
||||
# combination for urls for which arg2 (apisrv) is a super-url
|
||||
authhandler.add_password(None, config['apisrv'], config['user'], config['pass'])
|
||||
for host, auth in config['auth_dict'].iteritems():
|
||||
authhandler.add_password(None, host, auth['user'], auth['pass'])
|
||||
|
||||
|
||||
def get_config():
|
||||
|
Loading…
Reference in New Issue
Block a user