Switch libvirt get_cpu_info method over to use config APIs

The get_cpu_info method in the libvirt driver currently uses
XPath queries to extract information from the capabilities
XML document. Switch this over to use the new config class
LibvirtConfigCaps. Also provide a test case to validate
the data being returned.

Change-Id: I3ff015d641b8052cafee8b2cf84c14588e75287a
Closes-Bug: 1234567
(cherry picked from commit 7147fb3bcf)
This commit is contained in:
Jonte Watford
2016-08-18 14:57:48 +00:00
committed by Matt Dorn
parent 02a96f0d07
commit ccd89b6778

3
jw-72694.py Normal file
View File

@@ -0,0 +1,3 @@
Hello OpenStack Community,
This is my first bug fix.
I really hope it gets merged to master.