[libvirt] [PATCH] repeat lookup by name in LookupByID
Daniel Veillard
veillard at redhat.com
Wed Jul 16 15:27:07 UTC 2008
On Wed, Jul 16, 2008 at 12:04:39PM +0400, Evgeniy Sokolov wrote:
> There was error every time when I undefine stoped container
> "no domain with matching id".
> Bug arrise due to stoped container has ID = -1.
>
> In such case container will be searched by name.
okay, it's surprizing but for OpenVZ the ids are the same.
> other:
> use VIR_ERR_NO_DOMAIN when domain is not found
Which is how other drivers do, good idea :-)
Applied and commited, thanks !
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard at redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
More information about the libvir-list
mailing list