qvm-pool show pools without volumes

- Only empty `DomainPools` are skipped
This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-14 14:55:46 +02:00
szülő d3f8fc96e4
commit f02f6e6337
Nem található kulcs ehhez az aláíráshoz az adatbázisban
GPG kulcs azonosító: 96ED3C3BA19C3DEE

Fájl megtekintése

@ -85,9 +85,10 @@ def list_pools(app):
''' Prints out all known pools and their drivers '''
result = [('NAME', 'DRIVER')]
for pool in app.pools.values():
if len(pool.volumes) > 0 and not issubclass(
if len(pool.volumes) == 0 and issubclass(
pool.__class__, qubes.storage.domain.DomainPool):
# skip empty DomainPools
continue
result += [(pool.name, pool.driver)]
qubes.tools.print_table(result)