From e6360da22e347181a706ff5026f98b86f840dbb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 19 Feb 2021 01:12:26 +0100 Subject: [PATCH] qvm-template: default confirm to 'n' Capital 'N' in the prompt suggests it is the default - really make it the default. --- 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 406f839..6eb65e4 100644 --- a/qubesadmin/tools/qvm_template.py +++ b/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)