Module: check_mk
Branch: master
Commit: 0c517a2a3f40217cad5e15235549e4242afb511b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c517a2a3f4021…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 9 17:29:20 2017 +0100
Fixed exception on new service discovery page when changing services
Change-Id: I354b8c05c7da823a3f8251e0c47069746a932eed
---
web/htdocs/watolib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 083aa4a..65e01d2 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -6120,7 +6120,7 @@ class RulesetCollection(object):
if not g_rulespecs.exists(varname):
continue # don't save unknown rulesets
- if ruleset.is_empty():
+ if ruleset.is_empty_in_folder(folder):
continue # don't save empty rule sets
content += ruleset.to_config(folder)