mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 14:43:03 +00:00
Fix boolean configuration choices
Since the ask_bool refactoring, boolean choices were no longer taken into account during interactive configuration.
This commit is contained in:
parent
e1c5ea4e3e
commit
71ee7bc980
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Latest
|
||||
|
||||
- [Bugfix] Fix boolean configuration choices
|
||||
|
||||
## 3.3.9 (2019-05-13)
|
||||
|
||||
- [Improvement] Add `local exec` command for running commands inside existing containers
|
||||
|
@ -298,7 +298,9 @@ def ask(question, key, config):
|
||||
|
||||
|
||||
def ask_bool(question, key, config):
|
||||
return click.confirm(fmt.question(question), prompt_suffix=" ", default=config[key])
|
||||
config[key] = click.confirm(
|
||||
fmt.question(question), prompt_suffix=" ", default=config[key]
|
||||
)
|
||||
|
||||
|
||||
def ask_choice(question, key, config, choices):
|
||||
|
Loading…
Reference in New Issue
Block a user