mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
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…
x
Reference in New Issue
Block a user