]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2244] make sure configurtor's build_plan() handles 'failed' component.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 5 Oct 2012 00:38:43 +0000 (17:38 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 11 Oct 2012 17:04:39 +0000 (10:04 -0700)
this fixes the test case introduced at the beginning of the branch.

src/lib/python/isc/bind10/component.py

index 77196b02e9fd2cca05987836c24328b107e6c112..0b822a83e243bf56d8704a2fca4f2f67d7bc9521 100644 (file)
@@ -602,7 +602,7 @@ class Configurator:
         for cname in old.keys():
             if cname not in new:
                 component = self._components[cname][1]
-                if component.running():
+                if component.running() or component.is_failed():
                     plan.append({
                         'command': STOP_CMD,
                         'component': component,