From 1b7b1ca15e4a578c5ef788ae2e1d1d13b2d61a32 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 27 Jun 2016 09:28:53 -0400 Subject: [PATCH] if seconds are specified, min is 1 --- lib/ansible/plugins/action/pause.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/plugins/action/pause.py b/lib/ansible/plugins/action/pause.py index afe4f1d34b..2391951215 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)