diff options
author | Mark McLoughlin <markmc@redhat.com> | 2013-01-14 08:37:11 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2013-01-15 16:44:28 +0000 |
commit | 2f93ad27a25e10df47a4181938e3a183fc899954 (patch) | |
tree | 123f28fb326696967cbe642bbe4ea12fd272c120 /openstack/common/rpc/common.py | |
parent | 4a6ef49850336bc8a99f0b93feee0307f0383b1f (diff) | |
download | oslo-2f93ad27a25e10df47a4181938e3a183fc899954.tar.gz oslo-2f93ad27a25e10df47a4181938e3a183fc899954.tar.xz oslo-2f93ad27a25e10df47a4181938e3a183fc899954.zip |
Allow rpc drivers to always be imported
The qpid and zmq drivers current can't be import unless their
respective libraries are installed and neither are currently listed
in test-requires.
This prevents us from being able to use nosetests --with-doctests
because the import failure is seen as a test failure.
Fix this issue by making the import always succeed and deferring
failure until the module's APIs are actually used.
This will also help Nova's sample config file generation since it
will allow the generate-sample tool discover config options for these
drivers even when the messaging libraries aren't installed.
Change-Id: I30087fd33eef41d50d1a374cb5694dc15c43d1da
Diffstat (limited to 'openstack/common/rpc/common.py')
0 files changed, 0 insertions, 0 deletions