Merge pull request #842 from mwhudson/answers-tweak
do not run answers for view that is skipped
This commit is contained in:
commit
61be9f3fef
|
@ -472,9 +472,10 @@ class Subiquity(TuiApplication):
|
||||||
if not self.base_model.is_configured(new.model_name):
|
if not self.base_model.is_configured(new.model_name):
|
||||||
raise Confirm
|
raise Confirm
|
||||||
if new.interactive():
|
if new.interactive():
|
||||||
|
view = await super().make_view_for_controller(new)
|
||||||
if new.answers:
|
if new.answers:
|
||||||
self.aio_loop.call_soon(new.run_answers)
|
self.aio_loop.call_soon(new.run_answers)
|
||||||
return await super().make_view_for_controller(new)
|
return view
|
||||||
else:
|
else:
|
||||||
if self.autoinstall_config and not new.autoinstall_applied:
|
if self.autoinstall_config and not new.autoinstall_applied:
|
||||||
await new.apply_autoinstall_config()
|
await new.apply_autoinstall_config()
|
||||||
|
|
Loading…
Reference in New Issue