From 0b9af813e50400bfb527d61f9289185d80db0bc7 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Fri, 12 Apr 2019 16:12:14 +1200 Subject: [PATCH] do not show the snaplist if there is no network --- subiquity/controllers/snaplist.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subiquity/controllers/snaplist.py b/subiquity/controllers/snaplist.py index 6d72fa14..22b69abd 100644 --- a/subiquity/controllers/snaplist.py +++ b/subiquity/controllers/snaplist.py @@ -156,8 +156,9 @@ class SnapListController(BaseController): self.loader.start() def default(self): - if self.loader.failed: - # If loading snaps failed, skip the screen. + if self.loader.failed or not self.base_model.network.has_network: + # If loading snaps failed or the network is disabled, skip the + # screen. raise Skip() if 'snaps' in self.answers: to_install = {}