summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-27 22:09:58 +0300
committerDevaev Maxim <[email protected]>2019-04-27 22:09:58 +0300
commit380b1d15e3c8fcb7cc324cebf209bfe38cbb4011 (patch)
treefe09dc5deffef71099df0acc9f983ebeaa1c492f /kvmd/validators
parentd4c597e945de5e80b6f98bc64d4faa66ceddf70b (diff)
highlevel atx api
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/kvm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py
index 40f5ced1..09bd7c2b 100644
--- a/kvmd/validators/kvm.py
+++ b/kvmd/validators/kvm.py
@@ -30,6 +30,10 @@ from .basic import valid_number
# =====
+def valid_atx_power_action(arg: Any) -> str:
+ return check_string_in_list(arg, "ATX power action", ["on", "off", "off_soft", "reset"])
+
+
def valid_atx_button(arg: Any) -> str:
return check_string_in_list(arg, "ATX button", ["power", "power_long", "reset"])