From: JINMEI Tatuya Date: Fri, 5 Oct 2012 00:38:43 +0000 (-0700) Subject: [2244] make sure configurtor's build_plan() handles 'failed' component. X-Git-Tag: trac2351_base~1^2~7^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3584fbbffa6a633df2988ef8e52a4f367cdc814c;p=thirdparty%2Fkea.git [2244] make sure configurtor's build_plan() handles 'failed' component. this fixes the test case introduced at the beginning of the branch. --- diff --git a/src/lib/python/isc/bind10/component.py b/src/lib/python/isc/bind10/component.py index 77196b02e9..0b822a83e2 100644 --- a/src/lib/python/isc/bind10/component.py +++ b/src/lib/python/isc/bind10/component.py @@ -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,