diff options
author | Devaev Maxim <[email protected]> | 2019-04-27 22:09:58 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-27 22:09:58 +0300 |
commit | 380b1d15e3c8fcb7cc324cebf209bfe38cbb4011 (patch) | |
tree | fe09dc5deffef71099df0acc9f983ebeaa1c492f /kvmd/validators | |
parent | d4c597e945de5e80b6f98bc64d4faa66ceddf70b (diff) |
highlevel atx api
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/kvm.py | 4 |
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"]) |