mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 14:17:46 +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
|
||||
|
@ -260,7 +260,7 @@ def load_interactive(config):
|
||||
ask_bool(
|
||||
(
|
||||
"Activate SSL/TLS certificates for HTTPS access? Important note:"
|
||||
"this will NOT work in a development environment."
|
||||
" this will NOT work in a development environment."
|
||||
),
|
||||
"ACTIVATE_HTTPS",
|
||||
config,
|
||||
@ -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