summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-10 09:57:12 +0300
committerDevaev Maxim <[email protected]>2020-09-10 09:58:31 +0300
commitec6d13dc34071bf6673e532d767c25219ba52327 (patch)
tree15fe321ed2c92012ab3adf660a66b2fd23f06d7b /kvmd/plugins/msd/otg
parent9cb5582565aa2301a238ca382a32dc80106f6c15 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/msd/otg')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index bb5ebd66..2c795970 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -44,6 +44,7 @@ from ....yamlconf import Option
from ....validators.os import valid_abs_dir
from ....validators.os import valid_command
+from .... import tools
from .... import aiotools
from .... import aiofs
@@ -169,7 +170,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
"storage": Option("/var/lib/kvmd/msd", type=valid_abs_dir, unpack_as="storage_path"),
"remount_cmd": Option([*sudo, "/usr/bin/kvmd-helper-otgmsd-remount", "{mode}"], type=valid_command),
"unlock_cmd": Option([*sudo, "/usr/bin/kvmd-helper-otgmsd-unlock", "unlock"], type=valid_command),
- "sysfs_prefix": Option("", type=(lambda arg: str(arg).strip())),
+ "sysfs_prefix": Option("", type=tools.str_strip),
}
async def get_state(self) -> Dict: