def set_external_opts_defaults():
 cors.set_defaults(allow_headers=['X-Auth-Token', 'X-Openstack-Request-Id', 'X-Subject-Token', 'X-Project-Id', 'X-Project-Name', 'X-Project-Domain-Id', 'X-Project-Domain-Name', 'X-Domain-Id', 'X-Domain-Name'], expose_headers=['X-Auth-Token', 'X-Openstack-Request-Id', 'X-Subject-Token'], allow_methods=['GET', 'PUT', 'POST', 'DELETE', 'PATCH'])
 profiler.set_defaults(CONF, enabled=False, trace_sqlalchemy=False)
 opts = cache._opts.list_opts()
 for opt_list in opts:
  if (opt_list[0] == 'cache'):
   for o in opt_list[1]:
    if (o.name == 'enabled'):
     o.default = True

def set_external_opts_defaults ( ) : cors . set_defaults ( allow_headers = [ 'X-Auth-Token' , 'X-Openstack-Request-Id' , 'X-Subject-Token' , 'X-Project-Id' , 'X-Project-Name' , 'X-Project-Domain-Id' , 'X-Project-Domain-Name' , 'X-Domain-Id' , 'X-Domain-Name' ] , expose_headers = [ 'X-Auth-Token' , 'X-Openstack-Request-Id' , 'X-Subject-Token' ] , allow_methods = [ 'GET' , 'PUT' , 'POST' , 'DELETE' , 'PATCH' ] ) profiler . set_defaults ( CONF , enabled = False , trace_sqlalchemy = False ) opts = cache . _opts . list_opts ( ) for opt_list in opts : if ( opt_list [ 0 ] == 'cache' ) : for o in opt_list [ 1 ] : if ( o . name == 'enabled' ) : o . default = True
update default configuration options for oslo .