-
Notifications
You must be signed in to change notification settings - Fork 22
Description
We want the config feature to read a default config and then apply user customizations, similar to Hiera for Puppet. The config template is shipped with code and not intended to be modified, it serves as a template for users to copy and see all possible values. The the user's config is applied on top:
Line 55 in a580ab5
config.update(load_config_from_file(config_path, schema)) |
The bug is that this uses load_config_from_file
, which does shema validation, and will fail due to missing values. What we probably want to do instead is naively update
user's values and then rerun validation (or not, extra values should be ignored).
We could also have a minimal schema set for values the user must set. e.g. API tokens. But there's no use case for this yet, just dropping the thought for future reference.