From: JINMEI Tatuya Date: Fri, 5 Oct 2012 03:53:37 +0000 (-0700) Subject: [2244] added comment about has_comonent as it may not be very obvious. X-Git-Tag: trac2402_base~15^2~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3079eb5ceeeca83507f6dfbf712b374661c3935;p=thirdparty%2Fkea.git [2244] added comment about has_comonent as it may not be very obvious. --- diff --git a/src/lib/python/isc/bind10/component.py b/src/lib/python/isc/bind10/component.py index 57f9428586..aad3e694df 100644 --- a/src/lib/python/isc/bind10/component.py +++ b/src/lib/python/isc/bind10/component.py @@ -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):