1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-01 04:36:13 +01:00

Password can be an empty string (commonly used with ssh auth)

This commit is contained in:
Daniel Mach 2024-01-09 11:11:52 +01:00
parent 240841761b
commit 116be57b53

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