From 116be57b53a1184e992182c1ac7c95d18d574821 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 9 Jan 2024 11:11:52 +0100 Subject: [PATCH] Password can be an empty string (commonly used with ssh auth) --- osc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/conf.py b/osc/conf.py index c25861b8..14e201a8 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -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():