summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorSean Dague <sdague@linux.vnet.ibm.com>2012-06-01 17:19:54 -0400
committerSean Dague <sdague@linux.vnet.ibm.com>2012-06-11 11:16:18 -0400
commitb1dc846170e67ce63ef78d9ef86fe287cb97c9a1 (patch)
treebf506eddd19189c79a3d9a3a49893bb1ec1f3e17 /nova/compute
parent9072639e9440cd1b0a0c75904a13cb6a5111a0f4 (diff)
add unit tests for new virt driver loader
Continues work on bp:virt-driver-cleanup Add unit tests to test the loading of the new and old style loaders Fix libvirt driver to make read_only optional on the constructor Fix fake driver to correctly have the kwarg be read_only Add VirtDriverNotFound exception to make get_connection failures more explicit Factor out fake backend replacement (currently just libvirt) to a seperate super class Remove touching FLAGS and use self.flags instead Change-Id: I089d0dd9c97f87478b922f4c3e26c45891eaf6cc
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index e13d46cce..5a41ae0d7 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -234,6 +234,7 @@ class ComputeManager(manager.SchedulerDependentManager):
# and re-document the module docstring
if not compute_driver:
compute_driver = FLAGS.compute_driver
+
try:
self.driver = utils.check_isinstance(
importutils.import_object(compute_driver),