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

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