TOSIT-IO / tdp-lib

Python library to configure, manage and deploy TDP
Apache License 2.0
4 stars 8 forks source link

When overrides are not YAML valid, tdp_vars directory is inconsistent #634

Open rpignolet opened 5 days ago

rpignolet commented 5 days ago

If a YAML in a tdp_vars_overrides dir supply with --overrides option of tdp init is not valid, the tdp_vars dir is created and provision only with defaults but without overrides which is inconsistent. The user must remove tdp_vars dir manually before running again tdp init --overrides ....

We should validate YAML files before writing inside tdp_vars dir in order to not create tdp_vars dir and the content if a YAML file is not valid.