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:
parent
61b5f7bebc
commit
c0e2f8c1a3
@ -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}]: "
|
||||
|
Loading…
Reference in New Issue
Block a user