mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
yamlconf: fixed multiline default vales dump
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user