def _get_engine(request): connection_str = PROFILER_SETTINGS.get('receiver_connection_string', "mongodb://") kwargs = _get_engine_kwargs(request, connection_str) return profiler_get_driver(connection_str, **kwargs)
def _get_engine(): connection_str = horizon_settings.get_dict_config( 'OPENSTACK_PROFILER', 'receiver_connection_string') return profiler_get_driver(connection_str)
def _get_engine(request): connection_str = horizon_settings.get_dict_config( 'OPENSTACK_PROFILER', 'receiver_connection_string') kwargs = _get_engine_kwargs(request, connection_str) return profiler_get_driver(connection_str, **kwargs)
def _get_engine(request): connection_str = PROFILER_SETTINGS.get( 'receiver_connection_string', "mongodb://") kwargs = _get_engine_kwargs(request, connection_str) return profiler_get_driver(connection_str, **kwargs)