Module: check_mk
Branch: master
Commit: 32dd233a2c72974e2afe1462fad2addda83bbc7c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=32dd233a2c7297…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 22 12:05:09 2015 +0200
#2666 FIX Fix search for global configuration variables: ignore case now
---
.werks/2666 | 9 +++++++++
ChangeLog | 3 +++
web/htdocs/wato.py | 10 +++++-----
3 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/.werks/2666 b/.werks/2666
new file mode 100644
index 0000000..77e4d55
--- /dev/null
+++ b/.werks/2666
@@ -0,0 +1,9 @@
+Title: Fix search for global configuration variables: ignore case now
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.7i4
+Date: 1445508288
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index d0fab2e..08f5149 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,9 @@
* 2686 FIX: Fixed showing graphs for cluster ping services
* 2687 FIX: Quicksearch: Improved error handling
+ WATO:
+ * 2666 FIX: Fix search for global configuration variables: ignore case now
+
HW/SW-Inventory:
* 2436 NetApp monitoring: Now able to gather data for inventory...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2475af1..1082fdc 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8312,11 +8312,11 @@ def render_global_configuration_variables(default_values,
current_settings, show
help_text = valuespec.help() or ''
title_text = valuespec.title()
- if search and search not in groupname \
- and search not in domain \
- and search not in varname \
- and search not in help_text \
- and search not in title_text:
+ if search and search not in groupname.lower() \
+ and search not in domain.lower() \
+ and search not in varname \
+ and search not in help_text.lower() \
+ and search not in title_text.lower():
continue # skip variable when search is performed and nothing matches
at_least_one_painted = True