summaryrefslogtreecommitdiff
path: root/kvmd/validators/kvm.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/validators/kvm.py')
-rw-r--r--kvmd/validators/kvm.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py
index 0374ebd8..b06edf95 100644
--- a/kvmd/validators/kvm.py
+++ b/kvmd/validators/kvm.py
@@ -111,15 +111,15 @@ def valid_ugpio_driver(arg: Any, variants: Optional[Set[str]]=None) -> str:
return arg
-def valid_ugpio_mode(arg: Any) -> str:
- return check_string_in_list(arg, "GPIO mode", ["input", "output"])
-
-
def valid_ugpio_channel(arg: Any) -> str:
name = "GPIO channel"
return check_len(check_re_match(arg, name, r"^[a-zA-Z_][a-zA-Z0-9_-]*$"), name, 255)
+def valid_ugpio_mode(arg: Any) -> str:
+ return check_string_in_list(arg, "GPIO mode", ["input", "output"])
+
+
def valid_ugpio_view_table(arg: Any) -> List[List[str]]:
try:
return [list(map(str, row)) for row in list(arg)]