1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00

Fix calling _private.get_configuration_value()

This commit is contained in:
Daniel Mach 2023-01-20 13:19:04 +01:00
parent 7e7e8a0690
commit 64aefffc87

View File

@ -1856,7 +1856,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print('created request id', result)
if conf.config['print_web_links']:
obs_url = _private.get_configuration_option(apiurl, "obs_url")
obs_url = _private.get_configuration_value(apiurl, "obs_url")
print(f"{obs_url}/request/show/{result}")
if supersede_existing:
@ -3650,7 +3650,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
r = create_maintenance_request(apiurl, source_project, source_packages, target_project, release_project, opt_sourceupdate, opts.message, opts.enforce_branching)
print(r.reqid)
if conf.config['print_web_links']:
obs_url = _private.get_configuration_option(apiurl, "obs_url")
obs_url = _private.get_configuration_value(apiurl, "obs_url")
print(f"{obs_url}/request/show/{r.reqid}")
if supersede_existing:
@ -4578,7 +4578,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
raise oscerr.WrongArgs('Wrong number of arguments')
download_url = _private.get_configuration_option(apiurl, "download_url")
download_url = _private.get_configuration_value(apiurl, "download_url")
url_deb_tmpl = 'deb ' + download_url + '/%s/%s/ /'
url_arch_tmpl = 'Server=' + download_url + '/%s/%s/$arch'