Procházet zdrojové kódy

qvm-template: default confirm to 'n'

Capital 'N' in the prompt suggests it is the default - really make it
the default.
Marek Marczykowski-Górecki před 3 roky
rodič
revize
e6360da22e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      qubesadmin/tools/qvm_template.py

+ 1 - 1
qubesadmin/tools/qvm_template.py

@@ -368,7 +368,7 @@ def confirm_action(msg: str, affected: typing.List[str]) -> None:
     confirm = ''
     while confirm != 'y':
         confirm = input('Are you sure? [y/N] ').lower()
-        if confirm == 'n':
+        if confirm != 'y':
             print('command cancelled.')
             sys.exit(1)