Merge pull request #1400 from CarlosNihelton/optional-controller

Sets WslSetupOptions as an optional controller
This commit is contained in:
Carlos Nihelton 2022-08-29 14:00:07 -03:00 committed by GitHub
commit 68b92f1022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -46,12 +46,14 @@ class WSLSetupOptionsController(SubiquityController):
# load the config file # load the config file
data = default_loader() data = default_loader()
conf_data = WSLSetupOptions()
if data: if data:
proc_data = \ proc_data = \
{key: convert_if_bool(value) for (key, value) in data.items()} {key: convert_if_bool(value) for (key, value) in data.items()}
conf_data = WSLSetupOptions(**proc_data) conf_data = WSLSetupOptions(**proc_data)
self.model.apply_settings(conf_data)
self.model.apply_settings(conf_data)
def load_autoinstall_data(self, data): def load_autoinstall_data(self, data):
if data is not None: if data is not None:

View File

@ -31,7 +31,6 @@ INSTALL_MODEL_NAMES = ModelNames({
"wslconfbase", "wslconfbase",
}, },
wsl_setup={ wsl_setup={
"wslsetupoptions",
"identity", "identity",
}, },
wsl_configuration={ wsl_configuration={