1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 13:18:42 +02:00

Merge pull request #1407 from dmach/wrap-password-into-Password-object

Fix validating configuration by wrapping password into Password object
This commit is contained in:
2023-09-14 08:41:38 +02:00
committed by GitHub

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)