mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
if seconds are specified, min is 1
This commit is contained in:
@@ -109,6 +109,8 @@ class ActionModule(ActionBase):
|
||||
old_settings = None
|
||||
try:
|
||||
if seconds is not None:
|
||||
if seconds < 1:
|
||||
seconds = 1
|
||||
# setup the alarm handler
|
||||
signal.signal(signal.SIGALRM, timeout_handler)
|
||||
signal.alarm(seconds)
|
||||
|
||||
Reference in New Issue
Block a user