1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-05 23:23:39 +02: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:
2024-01-09 16:03:59 +01:00
committed by GitHub

View File

@@ -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():