summaryrefslogtreecommitdiff
path: root/libvirt-override-virStoragePool.py
blob: d631cd27017d732ca386ad37aed54b10482e556a (plain)
1
2
3
4
5
6
7
    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")

        return [virStorageVol(self._conn, _obj=volptr) for volptr in ret]