From 0613d411aa3580a1c41ee939cb6e099d55f88d25 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 3 Aug 2017 18:45:11 -0400 Subject: [PATCH] qa: update wait_for_health for new health json syntax Fixes: http://tracker.ceph.com/issues/20890 Signed-off-by: John Spray --- qa/tasks/ceph_test_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5