Explorar o código

qvm-template: test != 1 instead of == 0 for template-dummy feature

WillyPillow %!s(int64=3) %!d(string=hai) anos
pai
achega
60f5ba0e23
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      qubesadmin/tools/qvm_template.py

+ 1 - 1
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: