summaryrefslogtreecommitdiff
path: root/libvirt-override-virStoragePool.py
blob: 669df3edc4e63b4564d59304d9e59a5a2bf1a5e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
    def listAllVolumes(self, flags: int = 0) -> List['virStorageVol']:
        """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")

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

        return retlist