"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/common/rbac_enforcer/policy.py" between
keystone-16.0.1.tar.gz and keystone-17.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Ussuri" series (latest release).

policy.py  (keystone-16.0.1):policy.py  (keystone-17.0.0)
skipping to change at line 34 skipping to change at line 34
def reset(): def reset():
_ENFORCER._reset() _ENFORCER._reset()
def get_enforcer(): def get_enforcer():
"""Entrypoint that must return the raw oslo.policy enforcer obj. """Entrypoint that must return the raw oslo.policy enforcer obj.
This is utilized by the command-line policy tools. This is utilized by the command-line policy tools.
:returns: :class:`oslo_policy.policy.Enforcer` :returns: :class:`oslo_policy.policy.Enforcer`
""" """
# Here we pass an empty list of arguments because there aren't any CONF(project='keystone')
# arguments that oslo.config or oslo.policy shouldn't already understand
# from the CONF object. This makes things easier here because we don't have
# to parse arguments passed in from the command line and remove unexpected
# arguments before building a Config object.
CONF([], project='keystone')
return _ENFORCER._enforcer return _ENFORCER._enforcer
enforce = _ENFORCER._enforce enforce = _ENFORCER._enforce
 End of changes. 1 change blocks. 
6 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)