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

Este commit está contenido en:
WillyPillow 2021-02-20 09:57:59 +08:00
padre 33d205c1dd
commit 60f5ba0e23
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 3839E194B1415A9C

Ver fichero

@ -1376,7 +1376,7 @@ def remove(
cnt = 1 cnt = 1
while dummy in app.domains \ while dummy in app.domains \
and app.domains[dummy].features.get( and app.domains[dummy].features.get(
'template-dummy', '0') == '0': 'template-dummy', '0') != '1':
dummy = '%s-%d' % (orig_dummy, cnt) dummy = '%s-%d' % (orig_dummy, cnt)
cnt += 1 cnt += 1
if dummy not in app.domains: if dummy not in app.domains: