From 778cda0daa19a245b6bebabf8e0f3efa1d64625d Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Thu, 14 Jul 2016 14:55:46 +0200 Subject: [PATCH] qvm-pool show pools without volumes - Only empty `DomainPools` are skipped --- qubes/tools/qvm_pool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubes/tools/qvm_pool.py b/qubes/tools/qvm_pool.py index 80214a97..0444d56d 100644 --- a/qubes/tools/qvm_pool.py +++ b/qubes/tools/qvm_pool.py @@ -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)