mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
Fix validating configuration by wrapping password into Password object
This commit is contained in:
parent
a5f56b1673
commit
1a42b7a2c9
@ -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)
|
value = creds_mgr.get_password(url, host_options.username, defer=True, apiurl=host_options.apiurl)
|
||||||
if value is None:
|
if value is None:
|
||||||
raise oscerr.ConfigMissingCredentialsError("No password found in section {url}", conffile, url)
|
raise oscerr.ConfigMissingCredentialsError("No password found in section {url}", conffile, url)
|
||||||
|
value = Password(value)
|
||||||
|
|
||||||
host_options.set_value_from_string(name, value)
|
host_options.set_value_from_string(name, value)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user