[Libvir] libvirt.py has the two functions that names are the same.

Daniel Veillard veillard at redhat.com
Thu Mar 15 15:23:27 UTC 2007

On Tue, Mar 13, 2007 at 06:38:56PM +0900, Tatsuro Enokura wrote:
> Hi,
> When I used the lookupByName() function of libvirt.py, it failed with
> the following error messages.
> The lookupByName() function is the same name for domain and for
>  network in libvirt.py. The lookupByUUIDstring() function is similar.
> I think that generator of libvirt.py's function is incorrect.

  Whoops ! That's nasty, I would have expected python to complain in case
of double declaration of a method with same number of arguments, especially
with a different content.
  I fixed the generator so that the virNetworkLookup... functions are now
mapped as networkLookup... methods, that should fix the problem !

  thanks for raising this, I commited the fix in CVS,


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