6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-09-28 04:09:01 +00:00

fix: breaking "config save"

"config save" was not loading the full configuration prior to saving the
environment.
This commit is contained in:
Régis Behmo 2021-12-08 11:20:41 +01:00
parent 092dfbff67
commit 31eab76632
2 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,8 @@ def save(
if not env_only:
tutor_config.save_config_file(context.root, config)
tutor_config.render_full(config)
# Reload configuration, without version checking
config = tutor_config.load_full(context.root)
env.save(context.root, config)

View File

@ -19,7 +19,6 @@ def load(root: str) -> Config:
"quickstart` prior to running other commands."
)
env.check_is_up_to_date(root)
convert_json2yml(root)
return load_full(root)
@ -39,6 +38,7 @@ def load_full(root: str) -> Config:
"""
Load a full configuration, with user, base and defaults.
"""
convert_json2yml(root)
config = get_user(root)
update_with_base(config)
update_with_defaults(config)