Replace libvirt driver's use of libxml2 with ElementTree

libxml2 has been rather awkward as a dependency, and ElementTree
is in the standard library, so this replaces all use of libxml2 with
ElementTree instead.

Change-Id: Ib99983d5b04cc9f899584bfd4335fa9f7ece3c40
This commit is contained in:
Soren Hansen 2011-11-10 10:58:08 +01:00
parent a5580f4636
commit 6e8cdf0e5a
1 changed files with 1 additions and 8 deletions

View File

@ -51,13 +51,6 @@ except ImportError:
libvirt = None
try:
import libxml2
connection.libxml2 = libxml2
except ImportError:
libxml2 = None
FLAGS = flags.FLAGS
LOG = logging.getLogger('nova.tests.test_libvirt')
@ -243,7 +236,7 @@ class FakeVolumeDriver(object):
def missing_libvirt():
return libvirt is None or libxml2 is None
return libvirt is None
class LibvirtConnTestCase(test.TestCase):