1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-05 07:03:38 +02:00

conf: If apiurl is not set in interactive_config_setup(), use apiurl from DEFAULTS

This commit is contained in:
2023-04-11 11:11:25 +02:00
parent 8b5f0139e1
commit cf6e33a59b

View File

@@ -972,6 +972,9 @@ def identify_conf():
def interactive_config_setup(conffile, apiurl, initial=True):
if not apiurl:
apiurl = DEFAULTS["apiurl"]
scheme = urlsplit(apiurl)[0]
http = scheme == "http"
if http: