summaryrefslogtreecommitdiffstats
path: root/libvirt-override-virStoragePool.py
blob: ffe160cdcdd82ee34f882f5b4a0062369e7c74c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
    def listAllVolumes(self, flags):
        """List all storage volumes and returns a list of storage volume objects"""
        ret = libvirtmod.virStoragePoolListAllVolumes(self._o, flags)
        if ret is None:
            raise libvirtError("virStoragePoolListAllVolumes() failed", conn=self)

        retlist = list()
        for volptr in ret:
            retlist.append(virStorageVol(self, _obj=volptr))

        return retlist