1
0
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:
Daniel Mach 2024-01-09 16:03:59 +01:00 committed by GitHub
commit d88d5a52c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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