]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[640] inline comment
authorJelte Jansen <jelte@isc.org>
Thu, 2 Feb 2012 14:48:01 +0000 (15:48 +0100)
committerJelte Jansen <jelte@isc.org>
Thu, 2 Feb 2012 14:48:01 +0000 (15:48 +0100)
src/bin/cmdctl/cmdctl.py.in

index 0628f1f1fe982db238d890df18b408a5c3262ac0..5baa14360552f59f0dec2d774a70fdf8bd65d6af 100755 (executable)
@@ -310,6 +310,10 @@ class CommandControl():
     def command_handler(self, command, args):
         answer = ccsession.create_answer(0)
         if command == ccsession.COMMAND_MODULE_SPECIFICATION_UPDATE:
+            # The 'value' of a specification update can be either
+            # a specification, or None. In the first case, simply
+            # set it. If it is None, delete the module if it is
+            # known (and ignore otherwise).
             with self._lock:
                 if args[1] is None and args[0] in self.modules_spec:
                     del self.modules_spec[args[0]]