From 76cc19d0f261b60e34dc8c374ef73ffa3277a8df Mon Sep 17 00:00:00 2001 From: James Mighion Date: Thu, 29 Jun 2017 19:16:45 -0700 Subject: [PATCH] Calling connection.close() instead of self.close() to actually close the connection. (#26257) --- bin/ansible-connection | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-connection b/bin/ansible-connection index df301c55e04..1f46a9e1167 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -202,7 +202,7 @@ class Server(): self.socket.close() if self.connection: display.display('closing the connection', log_only=True) - self.close() + self.connection.close() except: pass finally: