From b1dc846170e67ce63ef78d9ef86fe287cb97c9a1 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 1 Jun 2012 17:19:54 -0400 Subject: 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 --- nova/compute/manager.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/compute') 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), -- cgit