mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
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:
parent
fc4ee3e674
commit
a68ab347d5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user