From: Vasu Kulkarni Date: Mon, 25 Jul 2016 22:29:53 +0000 (-0700) Subject: Fix rechecking of health in loop X-Git-Tag: v11.1.1~58^2^2~140^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=597534150b6f120632174936e2f90dc70b1da90d;p=ceph.git Fix rechecking of health in loop Use the newer stdout value for checking ceph health again. Signed-off-by: Vasu Kulkarni --- diff --git a/tasks/ceph_deploy.py b/tasks/ceph_deploy.py index 305978dbf2cf..9453c49a5a3d 100644 --- a/tasks/ceph_deploy.py +++ b/tasks/ceph_deploy.py @@ -598,6 +598,7 @@ def cli_test(ctx, config): action='check health') as proceed: while proceed(): r = remote.run(args=['sudo', 'ceph', 'health'], stdout=StringIO()) + out = r.stdout.getvalue() if (out.split(None,1)[0] == 'HEALTH_OK'): break rgw_install = 'install {branch} --rgw {node}'.format(