Browse Source

Use : for loading classes in entry_points

changes/09/36409/1
Flaper Fesp 9 years ago
parent
commit
2405fd2619
  1. 12
      openstack/common/messaging/drivers/__init__.py

12
openstack/common/messaging/drivers/__init__.py

@ -15,12 +15,14 @@
NAMESPACE = 'openstack.common.messaging.drivers'
def _driver(module, name):
return '%s.%s.%s' % (NAMESPACE, module, name)
return '%s.%s:%s' % (NAMESPACE, module, name)
_RABBIT_DRIVER = _driver('rabbit', 'RabbitDriver')
_QPID_DRIVER = _driver('qpid', 'QpidDriver')
_ZMQ_DRIVER = _driver('zmq', 'ZmqDriver')
_RABBIT_DRIVER = _driver('rabbit', RabbitDriver)
_QPID_DRIVER = _driver('qpid', QpidDriver)
_ZMQ_DRIVER = _driver('zmq', ZmqDriver)
TRANSPORT_DRIVERS = [
'rabbit = ' + _RABBIT_DRIVER,
@ -34,4 +36,4 @@ TRANSPORT_DRIVERS = [
'openstack.common.rpc.impl_kombu = ' + _RABBIT_DRIVER,
'openstack.common.rpc.impl_qpid = ' + _QPID_DRIVER,
'openstack.common.rpc.impl_zmq = ' + _ZMQ_DRIVER,
]
]

Loading…
Cancel
Save