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

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