mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
virtinst: connection: Only poll volumes for running pools
This commit is contained in:
parent
a75aa47daf
commit
c7d00baf66
@ -236,6 +236,9 @@ class VirtualConnection(object):
|
||||
ret = []
|
||||
for xmlobj in self.fetch_all_pools():
|
||||
pool = self._libvirtconn.storagePoolLookupByName(xmlobj.name)
|
||||
if pool.info()[0] != libvirt.VIR_STORAGE_POOL_RUNNING:
|
||||
continue
|
||||
|
||||
ignore, ignore, vols = pollhelpers.fetch_volumes(
|
||||
self, pool, {}, lambda obj, ignore: obj)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user