diff --git a/lib/ansible/plugins/action/pause.py b/lib/ansible/plugins/action/pause.py index afe4f1d34bb..23919512156 100644 --- a/lib/ansible/plugins/action/pause.py +++ b/lib/ansible/plugins/action/pause.py @@ -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)