From 588efa69fcf1b7c265dc15c3523a3878f06a611e Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 8 Mar 2012 14:42:52 +0100 Subject: [PATCH] Fix copy-paste error --- osc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')