Skip to content

Commit

Permalink
Fixed the yes/no prompt in verdi computer delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishnabhujade committed Nov 20, 2024
1 parent 779cc29 commit c782e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiida/cmdline/commands/cmd_computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c782e9a

Please sign in to comment.