mirror of https://gitee.com/openkylin/libvirt.git
qemu: Avoid overwriting errors from virGetHostname
This commit is contained in:
parent
5ef1b6c54a
commit
63e4af45f2
|
@ -257,7 +257,7 @@ qemuMigrationCookieNew(virDomainObjPtr dom)
|
|||
memcpy(mig->uuid, dom->def->uuid, VIR_UUID_BUFLEN);
|
||||
|
||||
if (!(mig->localHostname = virGetHostname(NULL)))
|
||||
goto no_memory;
|
||||
goto error;
|
||||
if (virGetHostUUID(mig->localHostuuid) < 0) {
|
||||
qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("Unable to obtain host UUID"));
|
||||
|
|
Loading…
Reference in New Issue