From cc18296cc575ecb613b4d7c0c59120c5597c81b4 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Sat, 13 May 2017 18:35:13 +0530 Subject: [PATCH] Fix timeout issue in ansible-connection (#24556) (#24579) Fixes #24520 ansible-connection needs to wait on timeout value of play-context instead of ssh default timeout (cherry picked from commit 5ec7f401969839da66018b8753edf5caf045fb0c) --- bin/ansible-connection | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-connection b/bin/ansible-connection index 10449115f6c..93d787e66ff 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -188,7 +188,7 @@ class Server(): if not data: break - signal.alarm(C.DEFAULT_TIMEOUT) + signal.alarm(self.play_context.timeout) rc = 255 try: