mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Switch over todo domain lookup based on UUID in virDomainAssignDef
This commit is contained in:
parent
8372a8c127
commit
cb43623acd
@ -1,3 +1,8 @@
|
||||
Sun Apr 19 16:14:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/domain_conf.c: Switch over todo domain lookup based
|
||||
on UUID in virDomainAssignDef
|
||||
|
||||
Sun Apr 19 16:14:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* docs/libvirt-api.xml, docs/libvirt-refs.xml,
|
||||
|
@ -499,7 +499,7 @@ virDomainObjPtr virDomainAssignDef(virConnectPtr conn,
|
||||
{
|
||||
virDomainObjPtr domain;
|
||||
|
||||
if ((domain = virDomainFindByName(doms, def->name))) {
|
||||
if ((domain = virDomainFindByUUID(doms, def->uuid))) {
|
||||
if (!virDomainIsActive(domain)) {
|
||||
virDomainDefFree(domain->def);
|
||||
domain->def = def;
|
||||
|
Loading…
Reference in New Issue
Block a user