diff --git a/base/univention-config-registry/python/univention/config_registry/handler.py b/base/univention-config-registry/python/univention/config_registry/handler.py index 2ccfc82..06fcfe4 100644 --- a/base/univention-config-registry/python/univention/config_registry/handler.py +++ b/base/univention-config-registry/python/univention/config_registry/handler.py @@ -467,6 +467,14 @@ def __init__(self, module): super(ConfigHandlerModule, self).__init__() self.module = module + def __hash__(self): + return hash(self.module) + + def __eq__(self, other): + if isinstance(other, type(self)): + return self.module == other.module + return NotImplemented + def __call__(self, args): """Call python module after change.""" ucr, changed = args