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:
parent
f297c01d6e
commit
f78ac323a8
@ -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
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user