diff --git a/osc/conf.py b/osc/conf.py index 5fed9d98..272beb57 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -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')