mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 15:06:15 +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()
|
raise oscerr.UserAbort()
|
||||||
print()
|
print()
|
||||||
|
|
||||||
apiurl_no_scheme = urlsplit(apiurl)[1]
|
apiurl_no_scheme = urlsplit(apiurl)[1] or apiurl
|
||||||
user_prompt = f"Username [{apiurl_no_scheme}]: "
|
user_prompt = f"Username [{apiurl_no_scheme}]: "
|
||||||
user = raw_input(user_prompt)
|
user = raw_input(user_prompt)
|
||||||
pass_prompt = f"Password [{user}@{apiurl_no_scheme}]: "
|
pass_prompt = f"Password [{user}@{apiurl_no_scheme}]: "
|
||||||
|
Loading…
Reference in New Issue
Block a user