]> 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>
Wed, 27 Jul 2016 19:48:55 +0000 (12:48 -0700)
Use the newer stdout value for checking
ceph health again.

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

index bb985e294c4cbebba07b4297f842cd6e6fa06d95..8c4ef015680b6c8a687067d72b59a4a10b81ddff 100644 (file)
@@ -560,6 +560,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(