Blame SOURCES/bz1914313-fence_zvmip-fix-disable-timeout.patch

92e554
From 900afe24edf0f400e9f1ed9b4df66e62cfee380e Mon Sep 17 00:00:00 2001
92e554
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
92e554
Date: Fri, 8 Jan 2021 16:16:59 +0100
92e554
Subject: [PATCH] fence_zvmip: fix shell-timeout when using new disable-timeout
92e554
 parameter
92e554
92e554
---
92e554
 agents/zvm/fence_zvmip.py | 2 +-
92e554
 1 file changed, 1 insertion(+), 1 deletion(-)
92e554
92e554
diff --git a/agents/zvm/fence_zvmip.py b/agents/zvm/fence_zvmip.py
92e554
index 5b272bb9..001106a4 100644
92e554
--- a/agents/zvm/fence_zvmip.py
92e554
+++ b/agents/zvm/fence_zvmip.py
92e554
@@ -28,7 +28,7 @@ def open_socket(options):
92e554
 
92e554
 	conn = socket.socket()
92e554
 	conn.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
92e554
-	conn.settimeout(float(options["--shell-timeout"]))
92e554
+	conn.settimeout(float(options["--shell-timeout"]) or None)
92e554
 	try:
92e554
 		conn.connect(addr)
92e554
 	except socket.error: