From c782e9a992ce28dfcf17359a0be312cd020b5bd2 Mon Sep 17 00:00:00 2001 From: Krishna Sanjay Bhujade <156920139+Krishnabhujade@users.noreply.github.com> Date: Wed, 20 Nov 2024 19:40:25 +0530 Subject: [PATCH] Fixed the yes/no prompt in verdi computer delete --- src/aiida/cmdline/commands/cmd_computer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiida/cmdline/commands/cmd_computer.py b/src/aiida/cmdline/commands/cmd_computer.py index 42feb36d25..ce2abca3c3 100644 --- a/src/aiida/cmdline/commands/cmd_computer.py +++ b/src/aiida/cmdline/commands/cmd_computer.py @@ -634,7 +634,7 @@ def _dry_run_callback(pks): if pks: echo.echo_report('The nodes with the following pks would be deleted: ' + ' '.join(map(str, pks))) echo.echo_warning(f'YOU ARE ABOUT TO DELETE {len(pks)} NODES! THIS CANNOT BE UNDONE!') - confirm = click.prompt('Shall I continue? [yes/N]', type=str) == 'yes' + confirm = click.prompt('Shall I continue? [yes/NO]', type=str) == 'yes' if not confirm: raise click.Abort return not confirm