Merge pull request #1350 from dbungert/lp-1974077
client: fix autoinstall crash on endpoint_name
This commit is contained in:
commit
d514221101
|
@ -468,7 +468,7 @@ class SubiquityClient(TuiApplication):
|
||||||
async def _select_initial_screen(self, index):
|
async def _select_initial_screen(self, index):
|
||||||
endpoint_names = []
|
endpoint_names = []
|
||||||
for c in self.controllers.instances[:index]:
|
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)
|
endpoint_names.append(c.endpoint_name)
|
||||||
if endpoint_names:
|
if endpoint_names:
|
||||||
await self.client.meta.mark_configured.POST(endpoint_names)
|
await self.client.meta.mark_configured.POST(endpoint_names)
|
||||||
|
|
Loading…
Reference in New Issue