1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

Always display apiurl when asking for credentials

This commit is contained in:
Daniel Mach 2023-10-10 16:13:59 +02:00
parent 61b5f7bebc
commit c0e2f8c1a3

View File

@ -1943,7 +1943,7 @@ def interactive_config_setup(conffile, apiurl, initial=True):
raise oscerr.UserAbort()
print()
apiurl_no_scheme = urlsplit(apiurl)[1]
apiurl_no_scheme = urlsplit(apiurl)[1] or apiurl
user_prompt = f"Username [{apiurl_no_scheme}]: "
user = raw_input(user_prompt)
pass_prompt = f"Password [{user}@{apiurl_no_scheme}]: "