]> git.ipfire.org Git - thirdparty/libvirt.git/commit
parallels: don't add domain to the list twice
authorDmitry Guryanov <dguryanov@parallels.com>
Wed, 23 Apr 2014 14:35:02 +0000 (18:35 +0400)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 7 May 2014 13:56:39 +0000 (14:56 +0100)
commit68a81f77d03651e143f9f8b7e552b7d115ecbfea
treeecf5e57d14a96f3f29a9178f45a979f8c9a82757
parent6d02d2774ddc0c43cdb640aa307dfbf1810e194d
parallels: don't add domain to the list twice

There is a problem with function parallelsDomainDefineXML. If we
are defining a new domain, then we need to do 2 things: aclually
create a VM in PCS and add new domain to the cached list of domains
_parallelsConn.domains.

This is done in the function parallelsLoadDomains. So call to
virDomainObjListAdd will return a error, because a domain
with the same name and id will already be in the list.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
src/parallels/parallels_driver.c