diff options
author | Devaev Maxim <[email protected]> | 2020-10-31 05:19:35 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-10-31 05:19:35 +0300 |
commit | 386461c9746665ef3440fe2c29ec60584d29cbbf (patch) | |
tree | beeb97afc642eec4f31ca680ce9e5e1776f7fbde /kvmd/apps/__init__.py | |
parent | a286cd5ec2166f79c26cda659983858daabccfbd (diff) |
advanced cmd options for streamer
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 820278ce..b8a4c160 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -73,6 +73,7 @@ from ..validators.os import valid_abs_path from ..validators.os import valid_abs_file from ..validators.os import valid_abs_dir from ..validators.os import valid_unix_mode +from ..validators.os import valid_options from ..validators.os import valid_command from ..validators.net import valid_ip_or_host @@ -363,7 +364,9 @@ def _get_config_scheme() -> Dict: "process_name_prefix": Option("kvmd/streamer"), - "cmd": Option(["/bin/true"], type=valid_command), + "cmd": Option(["/bin/true"], type=valid_command), + "cmd_remove": Option([], type=valid_options), + "cmd_append": Option([], type=valid_options), }, "snapshot": { |