From ba1601b5bb1961e57fa413340401aedef33ce29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Sun, 17 Nov 2019 19:17:42 +0100 Subject: [PATCH] Fixed overeager assert Pool usage details can actually be empty. --- qubesadmin/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesadmin/storage.py b/qubesadmin/storage.py index b7c5805..a653bb0 100644 --- a/qubesadmin/storage.py +++ b/qubesadmin/storage.py @@ -276,7 +276,7 @@ class Pool(object): pool_usage_data = self.app.qubesd_call( 'dom0', 'admin.pool.UsageDetails', self.name, None) pool_usage_data = pool_usage_data.decode('utf-8') - assert pool_usage_data.endswith('\n') + assert pool_usage_data.endswith('\n') or pool_usage_data == '' pool_usage_data = pool_usage_data[:-1] return dict(l.split('=', 1) for l in pool_usage_data.splitlines())