mirror of
https://github.com/openSUSE/osc.git
synced 2025-03-09 01:11:44 +01:00
It is possible that the self._pwfunc() call returns a callable. For instance, if the keyutils.osc.OscKernelKeyringBackend is configured in the oscrc. Hence, check in credentials._LazyPassword.__str__ if the returned password is a callable and, if so, call it. Moreover, a deprecation warning is printed. Eventually, this compat code will be removed again. This is a follow-up commit for commit 784d330f202c6e53d5adaeb1b48f93ef1a2e0ad6 ("Only prompt for a password if the server asks for it") (actually, it is a regression that was not caught during the review...).