summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-06-20 11:29:27 +0300
committerDevaev Maxim <[email protected]>2020-06-20 11:29:27 +0300
commitec3890e0e65fa773d9b21ca88e26ebad7d34dc16 (patch)
tree447fa1f26ac662149be8ff56eef0b2f200c11861 /kvmd
parentcf2f763d1bd23170cb82e0df9eff363931cc66dc (diff)
fixed keymap validation
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index cd49c9f1..a5ad6f25 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -229,7 +229,7 @@ def _get_config_scheme() -> Dict:
"hid": {
"type": Option("", type=valid_stripped_string_not_empty),
- "keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_path),
+ "keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
# Dynamic content
},
@@ -340,7 +340,7 @@ def _get_config_scheme() -> Dict:
"vnc": {
"desired_fps": Option(30, type=valid_stream_fps),
- "keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_path),
+ "keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
"server": {
"host": Option("::", type=valid_ip_or_host),