1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

Fix validating configuration by wrapping password into Password object

This commit is contained in:
Daniel Mach 2023-09-13 14:25:47 +02:00
parent a5f56b1673
commit 1a42b7a2c9

View File

@ -1834,6 +1834,7 @@ def get_config(override_conffile=None,
value = creds_mgr.get_password(url, host_options.username, defer=True, apiurl=host_options.apiurl)
if value is None:
raise oscerr.ConfigMissingCredentialsError("No password found in section {url}", conffile, url)
value = Password(value)
host_options.set_value_from_string(name, value)