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:
Cole Robinson 2009-08-05 11:39:31 +02:00 committed by Daniel Veillard
parent 3e64748c72
commit 8ddfb40e2d

View File

@ -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);