From a68d530133b9687f85dad4edf74d4b69a71e4959 Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Sun, 3 Jun 2012 12:36:27 -0600 Subject: [PATCH] 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 --- keystone/identity/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystone/identity/core.py b/keystone/identity/core.py index 6fbb628a5c..2e26eb15df 100644 --- a/keystone/identity/core.py +++ b/keystone/identity/core.py @@ -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):