[libvirt] [PATCH] Fix UUIDString for python bindings

Cole Robinson crobinso at redhat.com
Thu Jun 5 18:08:41 UTC 2008


The attached patch fixes a few issues in the python bindings.

First, UUIDString has, to my understanding, never worked. It expected
to be passed a buffer to fill with the uuid, which through my tests
isn't realistically doable from python. I added custom bindings to
fix this, and it now works as expected, taking no arguments and
returning a string.

UUID for a storage pool wasn't being generated with its custom function,
so it too was broken. This is also fixed.

I also removed some stale entries for virStorageVol UUID functions
from generator.py which were probably just carried along from an old
version of the storage api patches (storage volumes don't use UUID).

Thanks,
Cole
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-python-bind-fixes-patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080605/4b3b0062/attachment-0001.ksh>


More information about the libvir-list mailing list