]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix rechecking of health in loop
authorVasu Kulkarni <vasu@redhat.com>
Mon, 25 Jul 2016 22:29:53 +0000 (15:29 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Mon, 25 Jul 2016 22:29:53 +0000 (15:29 -0700)
Use the newer stdout value for checking
ceph health again.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
tasks/ceph_deploy.py

index 305978dbf2cfe38286ac1b77e64b260e856a6697..9453c49a5a3d4c83afa2c7c92f50b0cb5e1d7329 100644 (file)
@@ -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(