Skip the UbuntuAdvantage screen until we can validate the token

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2021-12-16 10:41:51 +01:00
parent fe4b6fde6f
commit 5403222956
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ class UbuntuAdvantageController(SubiquityTuiController):
async def make_ui(self) -> UbuntuAdvantageView:
""" Generate the UI, based on the data provided by the model. """
# TODO remove these two lines to enable this screen
await self.endpoint.skip.POST()
raise Skip("Hiding the screen until we can validate the token.")
path_lsb_release: Optional[str] = None
if self.app.opts.dry_run:
# In dry-run mode, always pretend to be on LTS