Skip to content

Commit

Permalink
Merge pull request #1407 from dmach/wrap-password-into-Password-object
Browse files Browse the repository at this point in the history
Fix validating configuration by wrapping password into Password object
  • Loading branch information
dmach authored Sep 14, 2023
2 parents 3892278 + 1a42b7a commit 0894724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0894724

Please sign in to comment.