Prefix the drivers module with an underscore

To make it clear that the drivers API isn't public and stable.

See the discussion in:

  https://github.com/markmc/oslo-incubator/pull/3
This commit is contained in:
Mark McLoughlin 2013-05-10 16:00:42 +01:00
parent d588b49cd0
commit ae6019ff82
3 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ NAMESPACE = 'openstack.common.messaging.drivers'
def _driver(module, name):
return '%s.%s:%s' % (NAMESPACE, module, name)
return 'openstack.common.messaging._drivers.%s:%s' % (module, name)
_RABBIT_DRIVER = _driver('rabbit', 'RabbitDriver')
_QPID_DRIVER = _driver('qpid', 'QpidDriver')

View File

@ -21,7 +21,7 @@ import urlparse
from oslo.config import cfg
from stevedore import driver
from openstack.common.messaging import drivers
from openstack.common.messaging import _drivers as drivers
_transport_opts = [
cfg.StrOpt('transport_url',