summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-09-26 04:00:06 +0300
committerMaxim Devaev <[email protected]>2021-09-26 04:00:06 +0300
commit89a0ec8cc8f26c7c11f7ba21e94085901cc3ada9 (patch)
treebd0c4bbf6d270609776432c1344aeaeade713d25
parentae81fced3d77cdcc6781b129168b25fc534d3894 (diff)
don't pulse ipmi gpio
-rw-r--r--kvmd/plugins/ugpio/ipmi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/plugins/ugpio/ipmi.py b/kvmd/plugins/ugpio/ipmi.py
index 0af3a055..d61b145d 100644
--- a/kvmd/plugins/ugpio/ipmi.py
+++ b/kvmd/plugins/ugpio/ipmi.py
@@ -149,6 +149,8 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
async def write(self, pin: str, state: bool) -> None:
if not self.__online:
raise GpioDriverOfflineError(self)
+ if not state:
+ return
action = (_OUTPUTS[pin] if pin.isdigit() else pin)
try:
proc = await aioproc.log_process(**self.__make_ipmitool_kwargs(action), logger=get_logger(0))