# Pastebin hb74zcUv -def _get_oslo.configs(): - """Returns the oslo.config options to register.""" +def _get_oslo_configs(): + """Returns the oslo config options to register.""" # NOTE(flaper87): Oslo config should be # optional. Instead of doing try / except # at the top of this file, lets import cfg # here and assume that the caller of this # function already took care of this dependency. - from oslo.config import cfg + from oslo_config import cfg return [ cfg.StrOpt('cache_url', default='memory://', @@ -53,13 +53,13 @@ ] -def register_oslo.configs(conf): +def register_oslo_configs(conf): """Registers a cache configuration options :params conf: Config object. :type conf: `cfg.ConfigOptions` """ - conf.register_opts(_get_oslo.configs()) + conf.register_opts(_get_oslo_configs()) def get_cache(url='memory://'): @@ -85,7 +85,7 @@ parameters = parse.parse_qsl(query) kwargs = {'options': dict(parameters)} - mgr = driver.DriverManager('octavia.openstack.common.cache.backends', backend, + mgr = driver.DriverManager('openstack.common.cache.backends', backend, invoke_on_load=True, invoke_args=[parsed], invoke_kwds=kwargs)