From e50de2c35f69b029af862560f9a93dcf6d2fe573 Mon Sep 17 00:00:00 2001 From: bjakubiak Date: Wed, 10 Oct 2018 01:04:51 +0200 Subject: [PATCH] Fixes #23456 (#35171) --- lib/ansible/modules/utilities/logic/wait_for.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/utilities/logic/wait_for.py b/lib/ansible/modules/utilities/logic/wait_for.py index ba0b2eb27a..3111cc3db9 100644 --- a/lib/ansible/modules/utilities/logic/wait_for.py +++ b/lib/ansible/modules/utilities/logic/wait_for.py @@ -322,6 +322,8 @@ class LinuxTCPConnectionInfo(TCPConnectionInfo): def get_active_connections_count(self): active_connections = 0 for family in self.source_file.keys(): + if not os.path.isfile(self.source_file[family]): + continue f = open(self.source_file[family]) for tcp_connection in f.readlines(): tcp_connection = tcp_connection.strip().split()