Module: check_mk
Branch: master
Commit: 83f997615a0c00f21353f285045ca7b6d156ed18
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=83f997615a0c00…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 31 17:22:34 2011 +0100
WATO: prohbit group rule if no groups defined
---
web/htdocs/wato.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ea364ff..5935911 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4283,7 +4283,8 @@ class ElementSelection(ValueSpec):
if len(self._elements) > 0:
return self._elements.keys()[0]
else:
- return ""
+ raise MKUserError(None,
+ _("There are not defined any elements for this selection yet."))
def render_input(self, varprefix, value):
self.load_elements()