summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-05 17:28:45 +0200
committerMaxim Devaev <[email protected]>2023-03-05 17:28:45 +0200
commit7c7ac38bfed8485fd1928cc03025739b6a407d51 (patch)
tree3ec3bb4ab1050d597dbedfa249ecf6da453944ec /kvmd/validators
parentb4fa35f05f2d5880b5c655f0be9d3d3871b3ce5f (diff)
new msd fs structure
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/kvm.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py
index 600aa5de..a3e5c32d 100644
--- a/kvmd/validators/kvm.py
+++ b/kvmd/validators/kvm.py
@@ -41,7 +41,11 @@ def valid_atx_button(arg: Any) -> str:
def valid_msd_image_name(arg: Any) -> str:
- return valid_printable_filename(arg, name="MSD image name") # pragma: nocover
+ name = "MSD image name"
+ arg = valid_printable_filename(arg, name=name)
+ if arg.startswith(".__") or arg == "lost+found":
+ raise_error(arg, name)
+ return arg
def valid_info_fields(arg: Any, variants: set[str]) -> set[str]: