From 4c92652e7bc0c20f50312c0946dfe47f75097db5 Mon Sep 17 00:00:00 2001 From: Stanislav Antic Date: Fri, 17 Jun 2016 16:04:26 +0200 Subject: [PATCH] Fix wait_for on python < 2.6 (#3790) (#3973) --- lib/ansible/modules/utilities/logic/wait_for.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/utilities/logic/wait_for.py b/lib/ansible/modules/utilities/logic/wait_for.py index 3440cf5f41b..d1cf928af64 100644 --- a/lib/ansible/modules/utilities/logic/wait_for.py +++ b/lib/ansible/modules/utilities/logic/wait_for.py @@ -337,7 +337,7 @@ def _create_connection(host, port, connect_timeout): Socket object """ if sys.version_info < (2, 6): - (family, _) = _convert_host_to_ip(host) + (family, _) = (_convert_host_to_ip(host))[0] connect_socket = socket.socket(family, socket.SOCK_STREAM) connect_socket.settimeout(connect_timeout) connect_socket.connect( (host, port) )