Module: check_mk
Branch: master
Commit: 617ceb706a2b95c8f55eaf0dc4e2f40c872ab213
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=617ceb706a2b95…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Jan 18 10:36:06 2017 +0100
introduced get_value function for rule class (preliminary, till this topic is clarified)
Change-Id: Icba6f3f2c0bc4cf4839963cc64e65e75b96a3df8
---
web/htdocs/watolib.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 331cdd5..5576ee2 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -6538,6 +6538,10 @@ class Rule(object):
self._initialize()
+ def get_value(self):
+ return self.value
+
+
def clone(self):
cloned = Rule(self.folder, self.ruleset)
cloned.from_config(self._format_rule())