Module: check_mk
Branch: master
Commit: 904ac8da2097d928201e4c7a177e85ad51a01895
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=904ac8da2097d9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 3 13:25:23 2010 +0100
wato: Fixed first inventory for services with spaces in item names
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 1cb6c67..d84e751 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -420,7 +420,7 @@ def mode_inventory(phase, firsttime):
elif (html.has_var("_activate_all") or
html.has_var("_fixall")) and st == "new":
active_checks[(ct, item)] = paramstring
else:
- varname = "_%s_%s" % (ct, item)
+ varname = ("_%s_%s" % (ct, item)).replace(' ',
'+')
if html.var(varname, "") != "":
active_checks[(ct, item)] = paramstring