]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2244] added comment about has_comonent as it may not be very obvious.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 5 Oct 2012 03:53:37 +0000 (20:53 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 11 Oct 2012 17:04:39 +0000 (10:04 -0700)
src/lib/python/isc/bind10/component.py

index 57f94285867f68a5f997f9d7ca96a0cbbf47e358..aad3e694dfb93b78d37df8306bd0f2f9e1e1e351 100644 (file)
@@ -573,6 +573,9 @@ class Configurator:
 
     def has_component(self, component):
         '''Return if a specified component is configured.'''
+        # Values of self._components are tuples of (name, component).
+        # Extract the components of the tuples and see if the given one
+        # is included.
         return component in map(lambda x: x[1], self._components.values())
 
     def reconfigure(self, configuration):