cpu_x86: Fix CPU data parser

The formatter uses /cpudata/cpuid elements and the parser should really
do the same.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2015-06-29 11:07:25 +02:00
parent fc4ee3e674
commit a68ab347d5

View File

@ -1309,8 +1309,8 @@ x86CPUDataParse(const char *xmlStr)
}
ctxt->node = xmlDocGetRootElement(xml);
n = virXPathNodeSet("/cpudata[@arch='x86']/data", ctxt, &nodes);
if (n < 0) {
n = virXPathNodeSet("/cpudata[@arch='x86']/cpuid", ctxt, &nodes);
if (n <= 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("no x86 CPU data found"));
goto cleanup;