This actually affects also FreeBSD 8 and 9, the issue is that python errno 
module does not have ETIME constant on FreeBSD, this constant is used by 
the new timer module. The patch below fixes this in my tests, PR incoming.


diff --git a/lib/ansible/module_utils/facts.py 
b/lib/ansible/module_utils/facts.py
index c056404..4c3e5ad 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)


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0a4211a1-6784-4ca1-b497-4035538bc40e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to