From 7f2b643aef4fdf4f3006ef8a85859e29409d553f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 09 2020 15:53:02 +0000 Subject: Add the new git auth backend to the default list The get_git_auth_helper method in pagure.lib.git_auth has logic to rely on the default/provided git auth if for some reasons it fails to load them from the pkg_resources. This method did not account for the new git auth backend that was recently added and this commit fixes this. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/git_auth.py b/pagure/lib/git_auth.py index 59e2501..cd5a2e5 100644 --- a/pagure/lib/git_auth.py +++ b/pagure/lib/git_auth.py @@ -74,6 +74,7 @@ def get_git_auth_helper(backend=None): "gitolite2": Gitolite2Auth, "gitolite3": Gitolite3Auth, "pagure": PagureGitAuth, + "pagure_authorized_keys": PagureGitAuth, }[backend] else: cls = classes[backend].load()