1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 22:56:15 +01: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:
Daniel Mach 2023-09-14 08:41:38 +02:00 committed by GitHub
commit 0894724219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)