forked from Mirror/pmbootstrap
pmb.config.init: Fix types in ask_for_systemd() (MR 2490)
pmb.helpers.cli.ask() returns a string, so previously this function was just lying about its return type (which happened to be fine in the context it was used, but still not what we want).
This commit is contained in:
parent
87900112c1
commit
73091016ae
1 changed files with 2 additions and 2 deletions
|
@ -263,11 +263,11 @@ def ask_for_systemd(config: Config, ui: str) -> SystemdConfig:
|
||||||
answer = pmb.helpers.cli.ask(
|
answer = pmb.helpers.cli.ask(
|
||||||
"Install systemd?",
|
"Install systemd?",
|
||||||
choices,
|
choices,
|
||||||
config.systemd,
|
str(config.systemd),
|
||||||
validation_regex=f"^({'|'.join(choices)})$",
|
validation_regex=f"^({'|'.join(choices)})$",
|
||||||
complete=choices,
|
complete=choices,
|
||||||
)
|
)
|
||||||
return answer
|
return SystemdConfig(answer)
|
||||||
|
|
||||||
|
|
||||||
def ask_for_keymaps(config: Config, deviceinfo: Deviceinfo) -> str:
|
def ask_for_keymaps(config: Config, deviceinfo: Deviceinfo) -> str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue