Module: check_mk
Branch: master
Commit: 2cd361a9958f72c4ccf890f8d74adf5348c1af00
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2cd361a9958f72…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 12 09:10:23 2018 +0200
Refactored SLA plugin registries to new logic
Change-Id: I39b2b94e2e205895e50611db0c2c4744cfc804f4
---
cmk/gui/plugin_registry.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/cmk/gui/plugin_registry.py b/cmk/gui/plugin_registry.py
index 681de17..2080608 100644
--- a/cmk/gui/plugin_registry.py
+++ b/cmk/gui/plugin_registry.py
@@ -86,6 +86,14 @@ class Registry(object):
del self._entries[key]
+ def __getitem__(self, key):
+ return self._entries[key]
+
+
+ def values(self):
+ return self._entries.values()
+
+
def items(self):
return self._entries.items()