From 90928dc4a009a637e63929468590bd0926dcbeb8 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Thu, 26 May 2016 18:57:13 +0200 Subject: [PATCH] qubes-pool skip DomainPools without volumes --- qubes/tools/qvm_pool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qubes/tools/qvm_pool.py b/qubes/tools/qvm_pool.py index da114147..bd4e5332 100644 --- a/qubes/tools/qvm_pool.py +++ b/qubes/tools/qvm_pool.py @@ -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)