1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

Fix copy-paste error

This commit is contained in:
Sascha Peilicke 2012-03-08 14:42:52 +01:00
parent 346b754941
commit 588efa69fc

View File

@ -883,7 +883,7 @@ def get_config(override_conffile=None,
apiurl = aliases.get(config['apiurl'], config['apiurl'])
config['apiurl'] = urljoin(*parse_apisrv_url(None, apiurl))
# backward compatibility
if key in config:
if 'apisrv' in config:
apisrv = config['apisrv'].lstrip('http://')
apisrv = apisrv.lstrip('https://')
scheme = config.get('scheme', 'https')