1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

fix keyring usage for an additional OBS instance

This commit is contained in:
Adrian Schröter 2009-09-05 10:09:03 +00:00
parent fec7d58df2
commit 5f35c67b63

View File

@ -391,7 +391,7 @@ def add_section(filename, url, user, passwd):
if config['use_keyring'] and GENERIC_KEYRING:
protocol, host = \
parse_apisrv_url(None, url)
keyring.set_password(host, username, password)
keyring.set_password(host, user, passwd)
cp.set(url, 'keyring', '1')
cp.set(url, 'user', user)
cp.remove_option(url, 'pass')