Correct exit when no disk is selected and we don't wish to continue (#1049)

This commit is contained in:
Werner Llácer 2022-03-29 10:25:18 +02:00 committed by GitHub
parent 02c715e224
commit e0d723f9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -99,6 +99,7 @@ class GlobalMenu(GeneralMenu):
Selector(
_('Specify superuser account'),
lambda preset: self._create_superuser_account(),
default={},
exec_func=lambda n,v:self._users_resynch(),
dependencies_not=['!root-password'],
display_func=lambda x: self._display_superusers())
@ -254,7 +255,8 @@ class GlobalMenu(GeneralMenu):
choice = Menu(prompt, ['yes', 'no'], default_option='yes').run()
if choice == 'no':
return self._select_harddrives(old_harddrives)
exit(1)
return harddrives