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

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