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

Merge pull request #1434 from dmach/restore-passx

Restore 'passx' host option that contains an obfuscated password
This commit is contained in:
Daniel Mach 2023-10-13 21:55:40 +02:00 committed by GitHub
commit dfbf8d8136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1747,6 +1747,8 @@ def _get_credentials_manager(url, cp):
return creds_mgr
if config['use_keyring'] and GENERIC_KEYRING:
return credentials.get_keyring_credentials_manager(cp)
elif cp.get(url, "passx", fallback=None) is not None:
return credentials.ObfuscatedConfigFileCredentialsManager(cp, None)
return credentials.PlaintextConfigFileCredentialsManager(cp, None)