qvm-template: default confirm to 'n'
Capital 'N' in the prompt suggests it is the default - really make it the default.
This commit is contained in:
parent
e424c7df9c
commit
e6360da22e
@ -368,7 +368,7 @@ def confirm_action(msg: str, affected: typing.List[str]) -> None:
|
|||||||
confirm = ''
|
confirm = ''
|
||||||
while confirm != 'y':
|
while confirm != 'y':
|
||||||
confirm = input('Are you sure? [y/N] ').lower()
|
confirm = input('Are you sure? [y/N] ').lower()
|
||||||
if confirm == 'n':
|
if confirm != 'y':
|
||||||
print('command cancelled.')
|
print('command cancelled.')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user