aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sweeney (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (AURORA-1524) register_auth_module still checks for callability
Date Thu, 22 Oct 2015 23:41:27 GMT

     [ https://issues.apache.org/jira/browse/AURORA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kevin Sweeney reassigned AURORA-1524:
-------------------------------------

    Assignee: Kevin Sweeney

> register_auth_module still checks for callability
> -------------------------------------------------
>
>                 Key: AURORA-1524
>                 URL: https://issues.apache.org/jira/browse/AURORA-1524
>             Project: Aurora
>          Issue Type: Bug
>            Reporter: Kevin Sweeney
>            Assignee: Kevin Sweeney
>
> This results in the following stack trace:
> {noformat}
>                          def register_auth_module(auth_module):
>                            """
>                              Add an auth module into the registry used by make_session_key.
An auth module is discovered
>                              via its auth mechanism.
>                          
>                              args:
>                                auth_module: A 0-arg callable that should return a SessionKey
or raises a SessionKeyError
>                                             and extend AuthModule.
>                            """
>                            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.')
>                      E       TypeError: auth_module should be callable.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message