summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-04-10 12:55:06 +0300
committerMaxim Devaev <[email protected]>2022-04-10 12:55:06 +0300
commitd55d7beb0ea5109f33f47cd50641f9f229c6949a (patch)
tree9f8c0d4650db367f28c4e5a18194066021efee01 /kvmd
parent970c3415195f8dc4bdc20d181a5de1deca8923a8 (diff)
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index 0b81391d..409b899a 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -172,14 +172,16 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
@classmethod
def get_plugin_options(cls) -> Dict:
- sudo = ["/usr/bin/sudo", "--non-interactive"]
return {
"upload_chunk_size": Option(65536, type=functools.partial(valid_number, min=1024)),
"sync_chunk_size": Option(4194304, type=functools.partial(valid_number, min=1024)),
"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),
+ "remount_cmd": Option([
+ "/usr/bin/sudo", "--non-interactive",
+ "/usr/bin/kvmd-helper-otgmsd-remount", "{mode}",
+ ], type=valid_command),
"initial": {
"image": Option("", type=valid_printable_filename, if_empty=""),