Merge "Fix readiness check dependency check"

This commit is contained in:
Jenkins 2016-12-08 08:31:41 +00:00 committed by Gerrit Code Review
commit 1eb1f7e013
1 changed files with 3 additions and 2 deletions

View File

@ -492,8 +492,9 @@ def run_probe(probe):
def do_status(role_name):
workflow = get_workflow(role_name)
service_name = workflow["name"]
# check status in etcd
if not check_is_done(service_name):
# check local status in etcd
local_dep = "%s:local" % service_name
if not check_is_done(local_dep):
LOG.info("Service is not done")
sys.exit(1)
LOG.info("Service in done state")