Skip to content

Commit

Permalink
Fixed typo in routing conditions (bug 1006793)
Browse files Browse the repository at this point in the history
The kwarg should be 'method' not 'methods', per Routes docs.
See: http://routes.readthedocs.org/en/latest/setting_up.html#conditions

Example in lieu of negative tests...
Without this change: http://paste.openstack.org/raw/18326/
With this change: http://paste.openstack.org/raw/18325/

Change-Id: If91fc0c79b320652674c68c433989a60c098dc1e
  • Loading branch information
dolph committed Jun 19, 2012
1 parent 9bc1448 commit a68d530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keystone/identity/core.py
Expand Up @@ -202,7 +202,7 @@ def add_routes(self, mapper):
mapper.connect('/tenants',
controller=tenant_controller,
action='get_tenants_for_token',
conditions=dict(methods=['GET']))
conditions=dict(method=['GET']))


class AdminRouter(wsgi.ComposableRouter):
Expand Down

0 comments on commit a68d530

Please sign in to comment.