From 44464480a60c9c415ef3f4c51beddf76b9aa3e7b Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Wed, 13 Jul 2022 12:34:09 -0600 Subject: [PATCH] client: fix autoinstall crash on endpoint_name Can trigger a crash today with autoinstall `interactive-sections: [storage]` Not all controllers have an endpoint_name defined. --- subiquity/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subiquity/client/client.py b/subiquity/client/client.py index 255c3735..cecd1cc3 100644 --- a/subiquity/client/client.py +++ b/subiquity/client/client.py @@ -468,7 +468,7 @@ class SubiquityClient(TuiApplication): async def _select_initial_screen(self, index): endpoint_names = [] for c in self.controllers.instances[:index]: - if c.endpoint_name: + if getattr(c, 'endpoint_name', None) is not None: endpoint_names.append(c.endpoint_name) if endpoint_names: await self.client.meta.mark_configured.POST(endpoint_names)