From 6fd5eb6ee9422b6881a1e0e58561ef69fe649104 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 19 Aug 2021 16:50:45 +1200 Subject: [PATCH] do not need to POST to /meta/client_variant any more --- subiquity/client/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subiquity/client/client.py b/subiquity/client/client.py index 9a111052..19610469 100644 --- a/subiquity/client/client.py +++ b/subiquity/client/client.py @@ -83,7 +83,7 @@ class SubiquityClient(TuiApplication): snapd_socket_path = '/run/snapd.socket' - variant = "server" + variant = None cmdline = ['snap', 'run', 'subiquity'] dryrun_cmdline_module = 'subiquity.cmd.tui' @@ -444,7 +444,8 @@ class SubiquityClient(TuiApplication): endpoint_names.append(c.endpoint_name) if endpoint_names: await self.client.meta.mark_configured.POST(endpoint_names) - await self.client.meta.client_variant.POST(self.variant) + if self.variant: + await self.client.meta.client_variant.POST(self.variant) self.controllers.index = index - 1 self.next_screen()