diff options
author | Devaev Maxim <[email protected]> | 2019-04-12 17:04:48 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-12 17:04:48 +0300 |
commit | 428e4840ac001fc2edda53285bb1c6e0677d6bac (patch) | |
tree | 7b6f736200f9dc99405695916b0c338a49608fc7 /kvmd/yamlconf/__init__.py | |
parent | 782aba16a4c347ccb2428a79ebc2a582b0f9b595 (diff) |
yamlconf: fixed multiline default vales dump
Diffstat (limited to 'kvmd/yamlconf/__init__.py')
-rw-r--r-- | kvmd/yamlconf/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/yamlconf/__init__.py b/kvmd/yamlconf/__init__.py index bfda9b78..99b67255 100644 --- a/kvmd/yamlconf/__init__.py +++ b/kvmd/yamlconf/__init__.py @@ -46,7 +46,7 @@ def build_raw_from_options(options: List[str]) -> Dict[str, Any]: raise ConfigError("No value for key %r" % (key)) section = raw - subs = list(map(str.strip, key.split("/"))) + subs = list(filter(None, map(str.strip, key.split("/")))) for sub in subs[:-1]: section.setdefault(sub, {}) section = section[sub] |