From bacac66fd35095fc8d2e9fe2bef0b1d37b6db2c9 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Fri, 13 Oct 2023 20:45:29 +0200 Subject: [PATCH] Restore 'passx' host option that contains an obfuscated password --- osc/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/conf.py b/osc/conf.py index d87a9ac6..d5579083 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -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)