1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 10:16:14 +01:00

check apiurl aliases also for copypac -t

This commit is contained in:
Ludwig Nussel 2009-12-15 17:24:25 +01:00
parent f297c01d6e
commit f78ac323a8
2 changed files with 2 additions and 1 deletions

View File

@ -1459,7 +1459,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
src_apiurl = conf.config['apiurl']
if opts.to_apiurl:
dst_apiurl = opts.to_apiurl
dst_apiurl = conf.config['apiurl_aliases'].get(opts.to_apiurl, opts.to_apiurl)
else:
dst_apiurl = src_apiurl

View File

@ -606,6 +606,7 @@ def get_config(override_conffile = None,
# add the auth data we collected to the config dict
config['api_host_options'] = api_host_options
config['apiurl_aliases'] = aliases
apiurl = aliases.get(config['apiurl'], config['apiurl'])
config['apiurl'] = urljoin(*parse_apisrv_url(None, apiurl))