forked from Mirror/pmbootstrap
pmb.config.init: Call pmb.helpers.cli.confirm() correctly (MR 2489)
"y" only works here by accident as it's considered truthy by Python and as such gets handled equivalently to True in the current implementation of pmb.helpers.cli.confirm(), but it's still relying on unintended behaviour. Change this to use a bool as intended.
This commit is contained in:
parent
79c6e4c36d
commit
0e9a2e596f
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ def ask_for_timezone() -> str:
|
|||
pass
|
||||
if tz:
|
||||
logging.info(f"Your host timezone: {tz}")
|
||||
if pmb.helpers.cli.confirm("Use this timezone instead of GMT?", default="y"):
|
||||
if pmb.helpers.cli.confirm("Use this timezone instead of GMT?", default=True):
|
||||
return tz
|
||||
logging.info("WARNING: Unable to determine timezone configuration on host, using GMT.")
|
||||
return "GMT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue