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:
Régis Behmo 2019-05-15 10:19:51 +02:00
parent e1c5ea4e3e
commit 71ee7bc980
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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):