summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/kvm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py
index 5a1fe1ae..676d5539 100644
--- a/kvmd/validators/kvm.py
+++ b/kvmd/validators/kvm.py
@@ -116,8 +116,8 @@ def valid_ugpio_channel(arg: Any) -> str:
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_mode(arg: Any, variants: Set[str]) -> str:
+ return check_string_in_list(arg, "GPIO driver's pin mode", variants)
def valid_ugpio_view_table(arg: Any) -> List[List[str]]: