Value comparison error for dropping into shell (#1441)

* Changed choice to choice.value.
This commit is contained in:
Anton Hvornum 2022-08-29 00:19:20 +02:00 committed by GitHub
parent 6f41262229
commit ee64276f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ def perform_installation(mountpoint):
if not archinstall.arguments.get('silent'):
prompt = str(_('Would you like to chroot into the newly created installation and perform post-installation configuration?'))
choice = Menu(prompt, Menu.yes_no(), default_option=Menu.yes()).run()
if choice == Menu.yes():
if choice.value == Menu.yes():
try:
installation.drop_to_shell()
except: