From e01d5a2a23b6030bc38cc809014e62c506303c89 Mon Sep 17 00:00:00 2001 From: Michael Still Date: Mon, 6 Feb 2012 15:32:43 +1100 Subject: Fix broken flag in test_imagecache Removing the duplicate instances_path flag in nova/virt/libvirt in https://review.openstack.org/#change,3759 broke the imagecache unit tests. Change-Id: I8fed15bd22d88a7796e1f98981c3ad87358a244a --- nova/tests/test_imagecache.py | 2 ++ nova/virt/libvirt/imagecache.py | 1 + 2 files changed, 3 insertions(+) diff --git a/nova/tests/test_imagecache.py b/nova/tests/test_imagecache.py index e624a93d8..dee937bd2 100644 --- a/nova/tests/test_imagecache.py +++ b/nova/tests/test_imagecache.py @@ -32,7 +32,9 @@ from nova.virt.libvirt import imagecache from nova.virt.libvirt import utils as virtutils +flags.DECLARE('instances_path', 'nova.compute.manager') FLAGS = flags.FLAGS + LOG = logging.getLogger('nova.tests.test_imagecache') diff --git a/nova/virt/libvirt/imagecache.py b/nova/virt/libvirt/imagecache.py index 00c22ab49..04b35f1ef 100644 --- a/nova/virt/libvirt/imagecache.py +++ b/nova/virt/libvirt/imagecache.py @@ -52,6 +52,7 @@ imagecache_opts = [ 'removed'), ] +flags.DECLARE('instances_path', 'nova.compute.manager') FLAGS = flags.FLAGS FLAGS.add_options(imagecache_opts) -- cgit