filesystem: fix run-answers for deleting a partition

When trying to delete a partition using the answers-based mechanism,
subiquity tries to call .done() on the ConfirmDeletesStretchy overlay.
However, this method does not exist. The .confirm() method is what we
should use instead.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2024-01-19 17:00:09 +01:00
parent 376131b04d
commit 76f0469705
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class FilesystemController(SubiquityTuiController, FilesystemManipulator):
return
if isinstance(body.stretchy, ConfirmDeleteStretchy):
if action.get("submit", True):
body.stretchy.done()
body.stretchy.confirm()
else:
async for _ in self._enter_form_data(
body.stretchy.form, action["data"], action.get("submit", True)