diff options
| author | Dolph Mathews <dolph.mathews@gmail.com> | 2012-06-03 12:36:27 -0600 |
|---|---|---|
| committer | Dolph Mathews <dolph.mathews@gmail.com> | 2012-06-19 14:25:19 -0500 |
| commit | a68d530133b9687f85dad4edf74d4b69a71e4959 (patch) | |
| tree | 908f973b7824404404bfe4c0adf216cc32f52e53 | |
| parent | 9bc14483a438926e2a60ceae9bbd29b061a31829 (diff) | |
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
| -rw-r--r-- | keystone/identity/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystone/identity/core.py b/keystone/identity/core.py index 6fbb628a..2e26eb15 100644 --- a/keystone/identity/core.py +++ b/keystone/identity/core.py @@ -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): |
