diff options
author | 2015-09-04 17:14:14 +0200 | |
---|---|---|
committer | 2015-09-04 17:14:14 +0200 | |
commit | fe16e5727e3efc8c096e79bcb181d04a4ac8416c (patch) | |
tree | 602e19f645e5a652b75d0d40111a56eac4df36c5 /keystone-moon/keystone/contrib/moon/routers.py | |
parent | 7ecd1573fd6ec625fb89b72ffa428ddf658b62f2 (diff) |
End of Keystone code update to branch Master and fix some bugs.
Change-Id: Iad3c4f0e6fc78532b92761aa46f2d8508f46a7da
Diffstat (limited to 'keystone-moon/keystone/contrib/moon/routers.py')
-rw-r--r-- | keystone-moon/keystone/contrib/moon/routers.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/keystone-moon/keystone/contrib/moon/routers.py b/keystone-moon/keystone/contrib/moon/routers.py index 63915092..340bd194 100644 --- a/keystone-moon/keystone/contrib/moon/routers.py +++ b/keystone-moon/keystone/contrib/moon/routers.py @@ -7,6 +7,9 @@ from keystone.contrib.moon import controllers from keystone.common import wsgi +from oslo_log import log + +LOG = log.getLogger(__name__) class Routers(wsgi.V3ExtensionRouter): @@ -23,7 +26,7 @@ class Routers(wsgi.V3ExtensionRouter): def _get_path(component): return 'http://docs.openstack.org/api/openstack-authz/3/param/{}'.format(component) - def append_v3_routers(self, mapper, routers): + def add_routes(self, mapper): # Controllers creation authz_controller = controllers.Authz_v3() configuration_controller = controllers.Configuration() @@ -31,12 +34,11 @@ class Routers(wsgi.V3ExtensionRouter): tenants_controller = controllers.Tenants() logs_controller = controllers.Logs() inter_ext_controller = controllers.InterExtensions() - # Configuration route self._add_resource( mapper, configuration_controller, path=self.PATH_PREFIX+'/configuration/templates', - get_action='get_templates', + get_action='get_policy_templates', rel=self._get_rel('templates'), path_vars={}) self._add_resource( @@ -47,7 +49,7 @@ class Routers(wsgi.V3ExtensionRouter): path_vars={}) self._add_resource( mapper, configuration_controller, - path=self.PATH_PREFIX+'/configuration/sub_meta_rule_relations', + path=self.PATH_PREFIX+'/configuration/sub_meta_rule_algorithms', get_action='get_sub_meta_rule_algorithms', rel=self._get_rel('sub_meta_rule_algorithms'), path_vars={}) |