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

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