
23 May
2008
23 May
'08
2:02 a.m.
import libvirt con = libvirt.open(<my uri using ssh>) con.numOfDefinedStoragePools()
Hi, I am just trying to use libvirt storage api from python terminal, and i am getting the following error. libvir: Remote error : Broken pipe Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/libvirt.py", line 1022, in numOfDefinedStoragePools ret = libvirtmod.virConnectNumOfDefinedStoragePools(self._o) AttributeError: 'module' object has no attribute 'virConnectNumOfDefinedStoragePools'
I have checked in the libvirt.c file and the function "virConnectNumOfDefinedStoragePools(virConnectPtr conn)" is implemented. Thanks,