diff options
author | Devaev Maxim <[email protected]> | 2019-06-26 21:31:53 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-06-26 21:31:53 +0300 |
commit | 071fd62f41026565e6e012f492c5ee9b8bbb10bc (patch) | |
tree | 5eeeb0bfb318a84b061164948894afff3271c249 /kvmd/apps | |
parent | 8a40b1f06294caa21bc7d43ef32da71cc1a9bc6f (diff) |
override
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 99648d10..589836a8 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -108,6 +108,7 @@ def _init_config(config_path: str, sections: List[str], override_options: List[s scheme = _get_config_scheme(sections) try: _merge_dicts(raw_config, build_raw_from_options(override_options)) + _merge_dicts(raw_config, (raw_config.get("override") or {})) config = make_config(raw_config, scheme) if "kvmd" in sections: @@ -143,6 +144,8 @@ def _merge_dicts(dest: Dict, src: Dict) -> None: def _get_config_scheme(sections: List[str]) -> Dict: scheme = { + "override": Option({}), + "logging": Option({}), "kvmd": { |