mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-03 15:10:21 -07:00
Merge pull request #7081 from bcoca/freebsd_fact_fix
fixed ETIME issue on FreeBSD 8 through 10, which broke fact gather
This commit is contained in:
commit
f09c0c7c64
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ except ImportError:
|
||||||
class TimeoutError(Exception):
|
class TimeoutError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def timeout(seconds=10, error_message=os.strerror(errno.ETIME)):
|
def timeout(seconds=10, error_message="Timer expired"):
|
||||||
def decorator(func):
|
def decorator(func):
|
||||||
def _handle_timeout(signum, frame):
|
def _handle_timeout(signum, frame):
|
||||||
raise TimeoutError(error_message)
|
raise TimeoutError(error_message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue