diff options
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)) |