]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_manager: fix get_stuck_pgs from pg dump change 24689/head
authorSage Weil <sage@redhat.com>
Sun, 21 Oct 2018 15:52:38 +0000 (10:52 -0500)
committerSage Weil <sage@redhat.com>
Sun, 21 Oct 2018 15:52:38 +0000 (10:52 -0500)
Fixes 95b7d2340c04dc7cf90085c89606b8c85a8f2803

Fixes: http://tracker.ceph.com/issues/36485
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph_manager.py

index 287d189f66cc06b81a3622a02d9604fc2d1eaf63..5b579937d1562eef43573a9c874a5b080e83ef74 100644 (file)
@@ -2025,7 +2025,7 @@ class CephManager:
         """
         out = self.raw_cluster_cmd('pg', 'dump_stuck', type_, str(threshold),
                                    '--format=json')
-        return json.loads(out)
+        return json.loads(out).get('stuck_pg_stats',[])
 
     def get_num_unfound_objects(self):
         """