Fixed typo in routing conditions (bug 1006793)
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
This commit is contained in:
parent
9bc14483a4
commit
a68d530133
@ -202,7 +202,7 @@ class PublicRouter(wsgi.ComposableRouter):
|
||||
mapper.connect('/tenants',
|
||||
controller=tenant_controller,
|
||||
action='get_tenants_for_token',
|
||||
conditions=dict(methods=['GET']))
|
||||
conditions=dict(method=['GET']))
|
||||
|
||||
|
||||
class AdminRouter(wsgi.ComposableRouter):
|
||||
|
Loading…
x
Reference in New Issue
Block a user