[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Gerhard Lausser
gerhard.lausser at consol.de
Tue Feb 28 22:13:25 UTC 2012
The following commit has been merged in the debian/master branch:
commit c3b51af9dea3f0994a033d1539530d28eb386f80
Author: Gerhard Lausser <gerhard.lausser at consol.de>
Date: Thu Jan 12 20:30:10 2012 +0100
Fix: class Items needs a __contains__ method, otherwise the "in" operator doesn't work. (and regenerator doesn't link servicegroups with services correctly)
diff --git a/shinken/objects/item.py b/shinken/objects/item.py
index 1d63db9..d788a4e 100644
--- a/shinken/objects/item.py
+++ b/shinken/objects/item.py
@@ -599,6 +599,10 @@ class Items(object):
return self.items[key]
+ def __contains__(self, key):
+ return key in self.items
+
+
# We create the reversed list so search will be faster
# We also create a twins list with id of twins (not the original
# just the others, higher twins)
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list