Module: check_mk
Branch: master
Commit: 2b248af00f9714199e78f72d1cbaef159c7f1d70
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2b248af00f9714…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 24 09:53:07 2017 +0100
ListOf valuespec: Fixed possible exception in complain phase
Change-Id: I7028bdcc096c74d897a7b1c196f9ec501a4c194b
---
web/htdocs/valuespec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 6f38f2a..13743bf 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1318,7 +1318,7 @@ class ListOf(ValueSpec):
def get_indexes(self, varprefix):
- count = int(html.var(varprefix + "_count"))
+ count = int(html.var(varprefix + "_count", 0))
n = 1
indexes = {}
while n <= count: