From 60f5ba0e23828e8455c07c2746671a30a562a578 Mon Sep 17 00:00:00 2001 From: WillyPillow Date: Sat, 20 Feb 2021 09:57:59 +0800 Subject: [PATCH] qvm-template: test != 1 instead of == 0 for template-dummy feature --- qubesadmin/tools/qvm_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesadmin/tools/qvm_template.py b/qubesadmin/tools/qvm_template.py index 9b1daa7..804bf02 100644 --- a/qubesadmin/tools/qvm_template.py +++ b/qubesadmin/tools/qvm_template.py @@ -1376,7 +1376,7 @@ def remove( cnt = 1 while dummy in app.domains \ and app.domains[dummy].features.get( - 'template-dummy', '0') == '0': + 'template-dummy', '0') != '1': dummy = '%s-%d' % (orig_dummy, cnt) cnt += 1 if dummy not in app.domains: