mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Configs are initialized by filtering against default config.
This commit is contained in:
parent
4b6fb1d37f
commit
05b206813b
1 changed files with 1 additions and 0 deletions
|
|
@ -400,6 +400,7 @@ class ConfigFile:
|
|||
if not self.is_valid(file):
|
||||
raise InvalidConfig(f'Config file is invalid: {str(self.get_relative_file())}')
|
||||
config_data = self.read_config_file(file)
|
||||
config_data = {k: v for k, v in config_data.items() if k in self.default_config}
|
||||
self._config.update(asdict(self.validator(**config_data)))
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue