Proceed with (post)install even without controllers

The server was waiting forever if there is no controller defined for
install or post-install events.

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
Jean-Baptiste Lallement 2021-09-08 17:42:58 +02:00 committed by Didier Roche
parent 1a3a25bb4b
commit c2ae0a7df4
1 changed files with 4 additions and 0 deletions

View File

@ -187,9 +187,13 @@ class SubiquityModel:
event.set()
async def wait_install(self):
if len(self._cur_install_model_names) == 0:
self._install_event.set()
await self._install_event.wait()
async def wait_postinstall(self):
if len(self._cur_postinstall_model_names) == 0:
self._postinstall_event.set()
await self._postinstall_event.wait()
async def wait_confirmation(self):