summaryrefslogtreecommitdiff
path: root/kvmd/apps/ipmi/server.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-30 01:05:25 +0300
committerDevaev Maxim <[email protected]>2019-04-30 01:05:25 +0300
commitfb9b1b555db20d3ddfa0618a7faba3ae2ec395e5 (patch)
tree9eed4095955d736c273bad9a0741c29d4e777dd7 /kvmd/apps/ipmi/server.py
parent76bc1bcea68e4d53f869371e793ef72c7e2c5571 (diff)
soft of by default
Diffstat (limited to 'kvmd/apps/ipmi/server.py')
-rw-r--r--kvmd/apps/ipmi/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/ipmi/server.py b/kvmd/apps/ipmi/server.py
index f71ce85c..3bc2ed94 100644
--- a/kvmd/apps/ipmi/server.py
+++ b/kvmd/apps/ipmi/server.py
@@ -110,10 +110,10 @@ class IpmiServer(BaseIpmiServer): # pylint: disable=too-many-instance-attribute
def __chassis_control_handler(self, request: Dict, session: IpmiServerSession) -> None:
handle = {
- 0: "/atx/power?action=off",
+ 0: "/atx/power?action=off_hard",
1: "/atx/power?action=on",
- 3: "/atx/power?action=reset",
- 5: "/atx/power?action=off_soft",
+ 3: "/atx/power?action=reset_hard",
+ 5: "/atx/power?action=off",
}.get(request["data"][0], "")
if handle:
if self.__make_request("POST", handle, session)[0] == 409: