Merge pull request #1400 from CarlosNihelton/optional-controller
Sets WslSetupOptions as an optional controller
This commit is contained in:
commit
68b92f1022
|
@ -46,11 +46,13 @@ 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):
|
||||||
|
|
|
@ -31,7 +31,6 @@ INSTALL_MODEL_NAMES = ModelNames({
|
||||||
"wslconfbase",
|
"wslconfbase",
|
||||||
},
|
},
|
||||||
wsl_setup={
|
wsl_setup={
|
||||||
"wslsetupoptions",
|
|
||||||
"identity",
|
"identity",
|
||||||
},
|
},
|
||||||
wsl_configuration={
|
wsl_configuration={
|
||||||
|
|
Loading…
Reference in New Issue