From bc23926f424dc8d1d2bad9a13ac9d15853b4e6b2 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sat, 19 Apr 2014 21:42:56 -0400 Subject: [PATCH] fixed ETIME issue on FreeBSD 8 through 10, which broke all fact gathering --- lib/ansible/module_utils/facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index c056404210f..4c3e5ad5582 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -49,7 +49,7 @@ except ImportError: class TimeoutError(Exception): pass -def timeout(seconds=10, error_message=os.strerror(errno.ETIME)): +def timeout(seconds=10, error_message="Timer expired"): def decorator(func): def _handle_timeout(signum, frame): raise TimeoutError(error_message)