mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-28 09:00:46 +02:00
conf: If apiurl is not set in interactive_config_setup(), use apiurl from DEFAULTS
This commit is contained in:
@@ -972,6 +972,9 @@ def identify_conf():
|
|||||||
|
|
||||||
|
|
||||||
def interactive_config_setup(conffile, apiurl, initial=True):
|
def interactive_config_setup(conffile, apiurl, initial=True):
|
||||||
|
if not apiurl:
|
||||||
|
apiurl = DEFAULTS["apiurl"]
|
||||||
|
|
||||||
scheme = urlsplit(apiurl)[0]
|
scheme = urlsplit(apiurl)[0]
|
||||||
http = scheme == "http"
|
http = scheme == "http"
|
||||||
if http:
|
if http:
|
||||||
|
Reference in New Issue
Block a user