From d037c5f4375f7c5cc246713c3ab93d6a4ba40ea7 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 3 May 2022 16:13:37 +0200 Subject: [PATCH] storage: fix crash when coming back from FS screen In order to fix a screen not refreshing issue, the following patch changed the return type of make_ui from an object to a callable in the storage controller: 414a2235 storage: fix screen sometimes not refreshing after slow probing The storage controller is the only one that reuses its make_ui() coroutine internally. Unfortunately, the code that calls await make_ui() was not updated in the storage controller. Signed-off-by: Olivier Gayot --- subiquity/client/controllers/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subiquity/client/controllers/filesystem.py b/subiquity/client/controllers/filesystem.py index ac53d231..02c120f8 100644 --- a/subiquity/client/controllers/filesystem.py +++ b/subiquity/client/controllers/filesystem.py @@ -254,7 +254,7 @@ class FilesystemController(SubiquityTuiController, FilesystemManipulator): self.app.aio_loop.create_task(self._guided_choice(choice)) async def _guided(self): - self.ui.set_body(await self.make_ui()) + self.ui.set_body((await self.make_ui())()) def guided(self): self.app.aio_loop.create_task(self._guided())