Merge remote-tracking branch 'origin/pull/43/head' into core3-devel

This commit is contained in:
Wojtek Porczyk 2016-07-21 19:33:21 +02:00
commit 8e08dae447

View File

@ -85,10 +85,11 @@ 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
result += [(pool.name, pool.driver)]
continue
result += [(pool.name, pool.driver)]
qubes.tools.print_table(result)