diff options
Diffstat (limited to 'keystone-moon/keystone/policy')
-rw-r--r-- | keystone-moon/keystone/policy/backends/rules.py | 2 | ||||
-rw-r--r-- | keystone-moon/keystone/policy/core.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/keystone-moon/keystone/policy/backends/rules.py b/keystone-moon/keystone/policy/backends/rules.py index 011dd542..a4150575 100644 --- a/keystone-moon/keystone/policy/backends/rules.py +++ b/keystone-moon/keystone/policy/backends/rules.py @@ -69,7 +69,7 @@ def enforce(credentials, action, target, do_raise=True): return _ENFORCER.enforce(action, target, credentials, **extra) -class Policy(policy.Driver): +class Policy(policy.PolicyDriverV8): def enforce(self, credentials, action, target): LOG.debug('enforce %(action)s: %(credentials)s', { 'action': action, diff --git a/keystone-moon/keystone/policy/core.py b/keystone-moon/keystone/policy/core.py index 7943b59e..dfd6ff2d 100644 --- a/keystone-moon/keystone/policy/core.py +++ b/keystone-moon/keystone/policy/core.py @@ -82,7 +82,7 @@ class Manager(manager.Manager): @six.add_metaclass(abc.ABCMeta) -class Driver(object): +class PolicyDriverV8(object): def _get_list_limit(self): return CONF.policy.list_limit or CONF.list_limit @@ -136,3 +136,6 @@ class Driver(object): """ raise exception.NotImplemented() # pragma: no cover + + +Driver = manager.create_legacy_driver(PolicyDriverV8) |