Repository: aurora Updated Branches: refs/heads/master 2f173c653 -> 8889d8408
Remove callable check. Bugs closed: AURORA-1524 Reviewed at https://reviews.apache.org/r/39572/ Project: http://git-wip-us.apache.org/repos/asf/aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/8889d840 Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/8889d840 Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/8889d840 Branch: refs/heads/master Commit: 8889d8408b33c190dd9d27e5fd7753e22b7d631e Parents: 2f173c6 Author: Kevin Sweeney <[email protected]> Authored: Thu Oct 22 16:56:00 2015 -0700 Committer: Kevin Sweeney <[email protected]> Committed: Thu Oct 22 16:56:00 2015 -0700 ---------------------------------------------------------------------- src/main/python/apache/aurora/common/auth/auth_module_manager.py | 2 -- 1 file changed, 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aurora/blob/8889d840/src/main/python/apache/aurora/common/auth/auth_module_manager.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/auth/auth_module_manager.py b/src/main/python/apache/aurora/common/auth/auth_module_manager.py index 07a2730..2d785e7 100644 --- a/src/main/python/apache/aurora/common/auth/auth_module_manager.py +++ b/src/main/python/apache/aurora/common/auth/auth_module_manager.py @@ -36,8 +36,6 @@ def register_auth_module(auth_module): """ if not isinstance(auth_module, AuthModule): raise TypeError('Given auth module must be a AuthModule subclass, got %s' % type(auth_module)) - if not callable(auth_module): - raise TypeError('auth_module should be callable.') _AUTH_MODULES[auth_module.mechanism] = auth_module
