Blame SOURCES/bz1971683-fence_sbd-dont-spam-logs-disable-timeout.patch

0ed125
From b220f963934f69044a39109fa065a95cd0972183 Mon Sep 17 00:00:00 2001
0ed125
From: Hideo Yamauchi <renayama19661014@ybb.ne.jp>
0ed125
Date: Fri, 2 Jul 2021 09:09:49 +0900
0ed125
Subject: [PATCH] Mid: fence_sbd: A warning message is output when
0ed125
 disable-timeout is enabled.
0ed125
0ed125
---
0ed125
 agents/sbd/fence_sbd.py | 2 +-
0ed125
 1 file changed, 1 insertion(+), 1 deletion(-)
0ed125
0ed125
diff --git a/agents/sbd/fence_sbd.py b/agents/sbd/fence_sbd.py
0ed125
index 3ae8df6e3..0c876b16e 100644
0ed125
--- a/agents/sbd/fence_sbd.py
0ed125
+++ b/agents/sbd/fence_sbd.py
0ed125
@@ -398,7 +398,7 @@ def main():
0ed125
     # then that defined within sbd we should report this.
0ed125
     power_timeout = int(options["--power-timeout"])
0ed125
     sbd_msg_timeout = get_msg_timeout(options)
0ed125
-    if power_timeout <= sbd_msg_timeout:
0ed125
+    if 0 < power_timeout <= sbd_msg_timeout:
0ed125
         logging.warn("power timeout needs to be \
0ed125
                 greater then sbd message timeout")
0ed125