diff options
author | Maxim Devaev <[email protected]> | 2021-09-26 04:00:06 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-09-26 04:00:06 +0300 |
commit | 89a0ec8cc8f26c7c11f7ba21e94085901cc3ada9 (patch) | |
tree | bd0c4bbf6d270609776432c1344aeaeade713d25 /kvmd | |
parent | ae81fced3d77cdcc6781b129168b25fc534d3894 (diff) |
don't pulse ipmi gpio
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/ugpio/ipmi.py | 2 |
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)) |