mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
Don't loose id on xen domain redefine
* src/xm_internal.c: bug when redefining a domain, if it was running we would loose its id
This commit is contained in:
parent
3e64748c72
commit
8ddfb40e2d
@ -2640,9 +2640,7 @@ virDomainPtr xenXMDomainDefineXML(virConnectPtr conn, const char *xml) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
if ((ret = virGetDomain(conn, def->name, def->uuid)))
|
||||
ret->id = -1;
|
||||
|
||||
ret = virGetDomain(conn, def->name, def->uuid);
|
||||
xenUnifiedUnlock(priv);
|
||||
return (ret);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user