qubes-pool skip DomainPools without volumes

Tento commit je obsažen v:
Bahtiar `kalkin-` Gadimov 2016-05-26 18:57:13 +02:00
rodič c8363cfc95
revize 90928dc4a0
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 96ED3C3BA19C3DEE

Zobrazit soubor

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