Remove callable check.
authorKevin Sweeney <kevints@apache.org>
Thu, 22 Oct 2015 23:56:00 +0000 (16:56 -0700)
committerKevin Sweeney <kevints@apache.org>
Thu, 22 Oct 2015 23:56:00 +0000 (16:56 -0700)
Bugs closed: AURORA-1524

Reviewed at https://reviews.apache.org/r/39572/

src/main/python/apache/aurora/common/auth/auth_module_manager.py

index 07a2730..2d785e7 100644 (file)
@@ -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