"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/conf/__init__.py" between
keystone-18.0.0.tar.gz and keystone-19.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 "Wallaby" series (latest release).

__init__.py  (keystone-18.0.0):__init__.py  (keystone-19.0.0)
skipping to change at line 21 skipping to change at line 21
# under the License. # under the License.
import logging import logging
from oslo_cache import core as cache from oslo_cache import core as cache
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log from oslo_log import log
from oslo_log import versionutils from oslo_log import versionutils
import oslo_messaging import oslo_messaging
from oslo_middleware import cors from oslo_middleware import cors
from oslo_policy import opts as policy_opts
from osprofiler import opts as profiler from osprofiler import opts as profiler
from keystone.conf import application_credential from keystone.conf import application_credential
from keystone.conf import assignment from keystone.conf import assignment
from keystone.conf import auth from keystone.conf import auth
from keystone.conf import catalog from keystone.conf import catalog
from keystone.conf import credential from keystone.conf import credential
from keystone.conf import default from keystone.conf import default
from keystone.conf import domain_config from keystone.conf import domain_config
from keystone.conf import endpoint_filter from keystone.conf import endpoint_filter
skipping to change at line 182 skipping to change at line 183
allow_methods=['GET', allow_methods=['GET',
'PUT', 'PUT',
'POST', 'POST',
'DELETE', 'DELETE',
'PATCH'] 'PATCH']
) )
# configure OSprofiler options # configure OSprofiler options
profiler.set_defaults(CONF, enabled=False, trace_sqlalchemy=False) profiler.set_defaults(CONF, enabled=False, trace_sqlalchemy=False)
# TODO(gmann): Remove setting the default value of config policy_file
# once oslo_policy change the default value to 'policy.yaml'.
# https://github.com/openstack/oslo.policy/blob/a626ad12fe5a3abd49d70e3e5b95
589d279ab578/oslo_policy/opts.py#L49
DEFAULT_POLICY_FILE = 'policy.yaml'
policy_opts.set_defaults(cfg.CONF, DEFAULT_POLICY_FILE)
# Oslo.cache is always enabled by default for request-local caching # Oslo.cache is always enabled by default for request-local caching
# TODO(morganfainberg): Fix this to not use internal interface when # TODO(morganfainberg): Fix this to not use internal interface when
# oslo.cache has proper interface to set defaults added. This is # oslo.cache has proper interface to set defaults added. This is
# just a bad way to do this. # just a bad way to do this.
opts = cache._opts.list_opts() opts = cache._opts.list_opts()
for opt_list in opts: for opt_list in opts:
if opt_list[0] == 'cache': if opt_list[0] == 'cache':
for o in opt_list[1]: for o in opt_list[1]:
if o.name == 'enabled': if o.name == 'enabled':
o.default = True o.default = True
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

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