mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Fix parsing of arch from domain XML
When parsing the arch from domain XML, the result was only saved to a local variable, not the virDomainDefPtr Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
1eec6d447e
commit
1c212145a3
@ -9576,8 +9576,8 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
|
||||
|
||||
tmp = virXPathString("string(./os/type[1]/@arch)", ctxt);
|
||||
if (tmp) {
|
||||
virArch arch = virArchFromString(tmp);
|
||||
if (!arch) {
|
||||
def->os.arch = virArchFromString(tmp);
|
||||
if (!def->os.arch) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Unknown architecture %s"),
|
||||
tmp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user