Support empty post_install model list

The signal telling postinstall was configured was never sent.

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
Jean-Baptiste Lallement 2021-09-01 10:47:24 +02:00
parent 1f4a9ab6f3
commit a60da3e589
1 changed files with 7 additions and 0 deletions

View File

@ -146,6 +146,13 @@ class SubiquityModel:
self._confirmation_task.cancel()
else:
self._install_event.set()
unconfigured_postinstall_model_names = \
self._cur_postinstall_model_names - self._configured_names
if unconfigured_postinstall_model_names:
if self._postinstall_event.is_set():
self._postinstall_event = asyncio.Event()
else:
self._postinstall_event.set()
def configured(self, model_name):
self._configured_names.add(model_name)