From: John Spray Date: Thu, 3 Aug 2017 22:45:11 +0000 (-0400) Subject: qa: update wait_for_health for new health json syntax X-Git-Tag: ses5-milestone10~3^2~13^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0613d411aa3580a1c41ee939cb6e099d55f88d25;p=ceph.git qa: update wait_for_health for new health json syntax Fixes: http://tracker.ceph.com/issues/20890 Signed-off-by: John Spray --- diff --git a/qa/tasks/ceph_test_case.py b/qa/tasks/ceph_test_case.py index 47f3921347d..0f66106c9f1 100644 --- a/qa/tasks/ceph_test_case.py +++ b/qa/tasks/ceph_test_case.py @@ -84,7 +84,7 @@ class CephTestCase(unittest.TestCase): def seen_health_warning(): health = self.ceph_cluster.mon_manager.get_mon_health() codes = [s for s in health['checks']] - summary_strings = [s[1]['message'] for s in health['checks'].iteritems()] + summary_strings = [s[1]['summary']['message'] for s in health['checks'].iteritems()] if len(summary_strings) == 0: log.debug("Not expected number of summary strings ({0})".format(summary_strings)) return False