Module: check_mk
Branch: master
Commit: ca59d3ca1e2bd5b58e38d3f90432f1cd27a90fdf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ca59d3ca1e2bd5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 29 13:25:48 2016 +0100
Fixed just introduced bug
---
modules/automation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/automation.py b/modules/automation.py
index d477123..3fd17b3 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -40,7 +40,7 @@ def trigger_automation_timeout(signum, stackframe):
def do_automation(cmd, args):
# Handle generic arguments (currently only the optional timeout argument)
- if args[0] == "--timeout":
+ if len(args) > 1 and args[0] == "--timeout":
args.pop(0)
timeout = int(args.pop(0))