mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-01 04:36:13 +01:00
Merge pull request #1466 from dmach/fix-credentials-empty-password
Password can be an empty string (commonly used with ssh auth)
This commit is contained in:
commit
d88d5a52c9
@ -1996,7 +1996,7 @@ def get_config(override_conffile=None,
|
||||
if not host_options.username:
|
||||
raise oscerr.ConfigMissingCredentialsError(f"No user configured for apiurl {apiurl}", conffile, apiurl)
|
||||
|
||||
if not host_options.password:
|
||||
if host_options.password is None:
|
||||
raise oscerr.ConfigMissingCredentialsError(f"No password configured for apiurl {apiurl}", conffile, apiurl)
|
||||
|
||||
for key, value in cp["general"].items():
|
||||
|
Loading…
Reference in New Issue
Block a user