diff options
author | Devaev Maxim <[email protected]> | 2020-05-18 13:34:23 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-05-18 13:34:23 +0300 |
commit | 028e0b06ff6730e309e1d3c7fb6abebb81360f5b (patch) | |
tree | 981760a61c3645ad85b6327dadbde3194d31c9e2 /kvmd/apps/__init__.py | |
parent | 3947640771a8d212e13196808679ba3caa1c411d (diff) |
refactoring
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 7d9b7425..c1e9f958 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -311,10 +311,10 @@ def _get_config_scheme() -> Dict: }, "kvmd": { - "host": Option("localhost", type=valid_ip_or_host, unpack_as="kvmd_host"), - "port": Option(0, type=valid_port, unpack_as="kvmd_port"), - "unix": Option("", type=valid_abs_path, only_if="!port", unpack_as="kvmd_unix_path"), - "timeout": Option(5.0, type=valid_float_f01, unpack_as="kvmd_timeout"), + "host": Option("localhost", type=valid_ip_or_host), + "port": Option(0, type=valid_port), + "unix": Option("", type=valid_abs_path, only_if="!port", unpack_as="unix_path"), + "timeout": Option(5.0, type=valid_float_f01), }, "auth": { |