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:
parent
d588b49cd0
commit
ae6019ff82
|
@ -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')
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue