From 57ce7b1ea1bc9680f66ac63906f250aef3e3d048 Mon Sep 17 00:00:00 2001 From: Ashish Ranjan Date: Fri, 24 Oct 2014 14:48:26 +0000 Subject: [PATCH] fields in /proc/net/tcp* are not always delimited by single space --- lib/ansible/modules/utilities/wait_for.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/utilities/wait_for.py b/lib/ansible/modules/utilities/wait_for.py index 5e02712ddf..2d62428267 100644 --- a/lib/ansible/modules/utilities/wait_for.py +++ b/lib/ansible/modules/utilities/wait_for.py @@ -228,7 +228,7 @@ class LinuxTCPConnectionInfo(TCPConnectionInfo): active_connections = 0 f = open(self.source_file[self.family]) for tcp_connection in f.readlines(): - tcp_connection = tcp_connection.strip().split(' ') + tcp_connection = tcp_connection.strip().split() if tcp_connection[self.local_address_field] == 'local_address': continue if tcp_connection[self.connection_state_field] not in self.connection_states: